diff options
author | Shawn O. Pearce <spearce@spearce.org> | 2007-09-02 15:30:26 -0400 |
---|---|---|
committer | Shawn O. Pearce <spearce@spearce.org> | 2007-09-03 23:01:44 -0400 |
commit | 881d8f24cab5bf4e0fa71b17a3ab82e27b2e8ed7 (patch) | |
tree | b6d9e239421b40eebe456021731344e09b803547 /git-gui.sh | |
parent | git-gui: Correct starting of git-remote to handle -w option (diff) | |
download | tgif-881d8f24cab5bf4e0fa71b17a3ab82e27b2e8ed7.tar.xz |
git-gui: Fix detaching current branch during checkout
If the user tried to detach their HEAD while keeping the working
directory on the same commit we actually did not completely do
a detach operation internally. The problem was caused by git-gui
not forcing the HEAD symbolic ref to be updated to a SHA-1 hash
when we were not switching revisions. Now we update the HEAD ref
if we aren't currently detached or the hashes don't match.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'git-gui.sh')
0 files changed, 0 insertions, 0 deletions