# Git submodule init fails

**URL:** <https://www.finalbuilder.com/forums/t/git-submodule-init-fails/3325>\
**Category:** Bugs\
**Created:** [December 10, 2010, 11:51am UTC](https://www.finalbuilder.com/forums/t/git-submodule-init-fails/3325 "2010-12-10T11:51:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![paretosec](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paretosec/32/115_2.png) [@paretosec](https://www.finalbuilder.com/forums/u/paretosec)\
**Post date:** [December 10, 2010, 11:51am UTC](https://www.finalbuilder.com/forums/t/git-submodule-init-fails/3325/1 "2010-12-10T11:51:17Z")

</div>

We're getting this error when a build is started by a trigger or through the web interface:&nbsp;

Command Line:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; git submodule init

/usr/libexec/git-core/git-sh-setup: line 194: cd: .git: No such file or directory

Unable to determine absolute path of git directory

&nbsp;

But when starting the build from FinalBuilder everything works as expected. We're running git clone before this task, so the repository is as it should be.

---

<div class="post-metadata">

**Author:** ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)\
**Post date:** [December 10, 2010, 11:43am UTC](https://www.finalbuilder.com/forums/t/git-submodule-init-fails/3325/2 "2010-12-10T11:43:52Z")

</div>

Are you using a relative path to specify the the location of the repository? If so do not do that :   
  
https://www.finalbuilder.com/forum.aspx?aft=10321

---

<div class="post-metadata">

**Author:** ![paretosec](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/paretosec/32/115_2.png) [@paretosec](https://www.finalbuilder.com/forums/u/paretosec)\
**Post date:** [December 13, 2010, 8:16am UTC](https://www.finalbuilder.com/forums/t/git-submodule-init-fails/3325/3 "2010-12-13T08:16:57Z")

</div>

&nbsp;No, we're using absolute paths

---

<div class="post-metadata">

**Author:** ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)\
**Post date:** [December 15, 2010, 1:58am UTC](https://www.finalbuilder.com/forums/t/git-submodule-init-fails/3325/4 "2010-12-15T01:58:41Z")

</div>

Hi Freddy   
  
 So far I am unable to reproduce this. Are you using the Git Generic action to run the ‘git submodule init’ command?   
  
 Not sure why Git cannot resolve the path of the repository. I tried to reproduce this by creating a project that uses a trigger to monitor a remote repository, when the build runs the remote repository is cloned to a clean local directory and I then use the Git Generic action to run the submodule init command. All this seems to work fine regardless of whether the build is started by the trigger or manually.   
  
 Is there anything else you are doing that I may be missing?   
  
 Regards,   
 Steve
