Skip to content

Cannot get dynamic repository to work #953

@tpluscode

Description

@tpluscode

Dynamic repository doesn't work for me with version 3.6.1 (installed GitVersion.Portable from Choco). Below is my command and output. As you see I'm running TC on Windows

[Step 1/4] Starting: C:\Windows\system32\cmd.exe /c gitversion /url https://bitbucket.org/*** /u buildsvr /p ******* /b refs/heads/XYZ /c 5a078f3ab356914a9ae9ff5c69146e6663c1c9f3 /output buildserver /updateassemblyinfo
[08:31:08][Step 1/4] in directory: C:\TeamCity\buildAgent_2\work\f18fd9d2d9018dcf
INFO [07/18/16 8:31:09:11] Working directory: C:\TeamCity\buildAgent_2\work\f18fd9d2d9018dcf
INFO [07/18/16 8:31:09:11] IsDynamicGitRepository: False
ERROR [07/18/16 8:31:09:16] An unexpected error occurred:
System.IO.DirectoryNotFoundException: Can't find the .git directory in C:\TeamCity\buildAgent_2\work\f18fd9d2d9018dcf
   at GitVersion.GitPreparer.GetDotGitDirectory()
   at GitVersion.GitPreparer.GetProjectRootDirectory()
   at GitVersion.ConfigurationProvider.Verify(GitPreparer gitPreparer, IFileSystem fileSystem)
   at GitVersion.Program.VerifyArgumentsAndRun()
INFO [07/18/16 8:31:09:16] 
INFO [07/18/16 8:31:09:16] Attempting to show the current git graph (please include in issue): 
INFO [07/18/16 8:31:09:16] Showing max of 100 commits
INFO [07/18/16 8:31:09:26] ERROR: fatal: Not a git repository (or any of the parent directories): .git

INFO [07/18/16 8:31:09:11] Working directory: C:\TeamCity\buildAgent_2\work\f18fd9d2d9018dcf
INFO [07/18/16 8:31:09:11] IsDynamicGitRepository: False
ERROR [07/18/16 8:31:09:16] An unexpected error occurred:
System.IO.DirectoryNotFoundException: Can't find the .git directory in C:\TeamCity\buildAgent_2\work\f18fd9d2d9018dcf
   at GitVersion.GitPreparer.GetDotGitDirectory()
   at GitVersion.GitPreparer.GetProjectRootDirectory()
   at GitVersion.ConfigurationProvider.Verify(GitPreparer gitPreparer, IFileSystem fileSystem)
   at GitVersion.Program.VerifyArgumentsAndRun()
INFO [07/18/16 8:31:09:16] 
INFO [07/18/16 8:31:09:16] Attempting to show the current git graph (please include in issue): 
INFO [07/18/16 8:31:09:16] Showing max of 100 commits
INFO [07/18/16 8:31:09:26] ERROR: fatal: Not a git repository (or any of the parent directories): .git

Process exited with code 1
Step GitVersion (Command Line) failed

Note the IsDynamicGitRepository: False. Why is that?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions