Show log broken if ".git" directory is a link (worked in 1.7.14.0)
By matthias.kitt... on February 22, 2013 16:02 (imported from Google Code)
What steps will reproduce the problem?
- Go to repository root (where ".git" is located) and make "Show log"
- Everything works fine (Log is shown)
- Copy the repository
- Open a "cmd.exe" (as Administrator on Windows7) and goto the copy
- Remove the ".git" directory and create a link to the ".git" of the first repository: Call e.g.:
H:\matthias\tortoisegit_2>mklink /D .git ..\tortoisegit.git
symbolic link created for .git <<===>> ..\tortoisegit.git - Go to repository root (where ".git" is located) and make "Show log"
What is the expected output? What do you see instead?
Expectation: Everything works fine (Log is shown)
TortoiseGit 1.7.14.0 shows the log as expected
TortoiseGit 1.8.0.0 shows the following error messages:
Could not get HEAD hash. libgit2 returned: Could not find repository from 'H:/matthias/tortoisegit_2'
Could not get all refs. libgit2 returned: Could not find repository from 'H:/matthias/tortoisegit_2'
Could not get HEAD hash. Quitting... libgit2 returned: Could not find repository from 'H:/matthias/tortoisegit_2'
What version of TortoiseGit and msysgit are you using? On
what operating system?
TortoiseGit 1.7.14.0 and TortoiseGit 1.8.0.0
Windows 7 x64
Please provide any additional information below.
We need this behaviour because we use the google/android repo tool on Windows/cygwin which links the ".git" directories into the ".repo" directory. We additionally convert the created cygwin-links into native windows links. This worked until TortoiseGit 1.7.14.0.