sync: Fix committing when in a direct mode repo that has no HEAD ref.
Seen for example, a newly checked out git submodule. In this case, .git/HEAD is a raw sha, rather than the usual reference to a ref. Removed currentSha in passing, since it was a more roundabout way of doing what headSha does, and headSha is more robust.
This commit is contained in:
parent
79b6500111
commit
a6db10d565
5 changed files with 16 additions and 14 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -27,6 +27,8 @@ git-annex (5.2015022) UNRELEASED; urgency=medium
|
|||
(or '!') character.
|
||||
* Also potentially fixes encoding problem when embedding credentials
|
||||
that contain unicode characters.
|
||||
* sync: Fix committing when in a direct mode repo that has no HEAD ref.
|
||||
(For example, a newly checked out git submodule.)
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Thu, 19 Feb 2015 14:16:03 -0400
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue