Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't find the .git directory in C:\TeamCity\buildAgent\work\d8b51bbe303335d5 #926

Closed
dazinator opened this issue Jul 6, 2016 · 7 comments

Comments

@dazinator
Copy link
Member

dazinator commented Jul 6, 2016

I'm familiar with team city agent vs server checkout, and the dynamic repository feature.

I am using the gitversion meta runner for team city, using server checkout, passing argument to obtain the repo on the fly. Hitting this error - here is the log:


Running: C:\ProgramData\chocolatey\bin\gitversion.exe "C:\TeamCity\buildAgent\work\d8b51bbe303335d5" /url 'http://****@****.co.uk/scm/gc3/gluon.git' /b 'develop' /u '****' /p '*****' /output 'buildserver' /UpdateAssemblyInfo
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:52] Working directory: C:\TeamCity\buildAgent\work\d8b51bbe303335d5
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:52] Running on Windows.
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:53] Applicable build agent found: 'TeamCity'.
[19:00:40][Step 1/1] ERROR [07/06/16 19:00:40:56] An unexpected error occurred:
[19:00:40][Step 1/1] System.IO.DirectoryNotFoundException: Can't find the .git directory in C:\TeamCity\buildAgent\work\d8b51bbe303335d5
[19:00:40][Step 1/1]    at GitVersion.GitPreparer.GetDotGitDirectory()
[19:00:40][Step 1/1]    at GitVersion.ExecuteCore.ExecuteGitVersion(String targetUrl, String dynamicRepositoryLocation, Authentication authentication, String targetBranch, Boolean noFetch, String workingDirectory, String commitId, Config overrideConfig)
[19:00:40][Step 1/1]    at GitVersion.SpecifiedArgumentRunner.Run(Arguments arguments, IFileSystem fileSystem)
[19:00:40][Step 1/1]    at GitVersion.Program.VerifyArgumentsAndRun()
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:56] 
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:56] Here is the current git graph (please include in issue): 
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:56] Showing max of 100 commits
[19:00:40][Step 1/1] INFO [07/06/16 19:00:40:61] ERROR: fatal: Not a git repository (or any of the parent directories): .git

It says it can't find the .git directory.. Isn't it meant to create / fetch one based on the arguments I am passing? Any ideas?

@asbjornu
Copy link
Member

asbjornu commented Jul 6, 2016

@dazinator Sounds like this is related to #914 which is merged, but not released yet.

@JackFrostStudios
Copy link

@asbjornu do you know when the next release is planned? Looking forward to the fix for this :)

@dazinator
Copy link
Member Author

@asbjornu - thanks for fixing this - much appreciated.

@asbjornu
Copy link
Member

asbjornu commented Jul 7, 2016

@JackFrostStudios It's hanging on #898 going green. Not many days, I hope. 😄

@JakeGinnivan
Copy link
Contributor

Build is green, gonna try and close out a few more small things then push a release today.

@JackFrostStudios
Copy link

@JakeGinnivan any news on that release?

@gep13
Copy link
Member

gep13 commented Jul 11, 2016

@JackFrostStudios you should find the 3.6.0 release of GitVersion available now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants