author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | |
Sat, 23 Jan 2010 10:03:36 +0000 (11:03 +0100) | ||
committer | Shawn O. Pearce <spearce@spearce.org> | |
Sat, 23 Jan 2010 23:14:04 +0000 (15:14 -0800) | ||
commit | 87cd09f43e56de5235d09aef3ff5d840419fef49 | |
tree | c2707c97a5987af4cc8074649d533b8d189e37ce | tree | snapshot |
parent | 390425bdef450a0eb246552f94ca88a05dc11d06 | commit | diff |
git-gui: work from the .git dir
When git-gui is run from a .git dir, _gitdir would be set to "." by
rev-parse, something that confuses the worktree detection.
Fix by expanding the value of _gitdir to pwd in this special case.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
When git-gui is run from a .git dir, _gitdir would be set to "." by
rev-parse, something that confuses the worktree detection.
Fix by expanding the value of _gitdir to pwd in this special case.
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
git-gui.sh | diff | blob | history |