diff options
author | Deskin Miller <deskinm@umich.edu> | 2008-11-06 06:07:39 +0100 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2008-11-14 07:33:59 +0100 |
commit | fe4003f6308b88bcc44a989f12e1baddd97f22d4 (patch) | |
tree | fa76d099401455c6ea3ed146fccc24a5eb461948 /test-path-utils.c | |
parent | git-svn: respect i18n.commitencoding config (diff) | |
download | git-fe4003f6308b88bcc44a989f12e1baddd97f22d4.tar.xz git-fe4003f6308b88bcc44a989f12e1baddd97f22d4.zip |
git-svn: proper detection of bare repositories
When in a bare repository (or .git, for that matter), git-svn would fail
to initialise properly, since git rev-parse --show-cdup would not output
anything. However, git rev-parse --show-cdup actually returns an error
code if it's really not in a git directory.
Fix the issue by checking for an explicit error from git rev-parse, and
setting $git_dir appropriately if instead it just does not output.
Signed-off-by: Deskin Miller <deskinm@umich.edu>
Acked-by: Eric Wong <normalperson@yhbt.net>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions