Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/perl
diff options
context:
space:
mode:
authorDeskin Miller <deskinm@umich.edu>2008-11-06 08:07:39 +0300
committerEric Wong <normalperson@yhbt.net>2008-11-14 09:33:59 +0300
commitfe4003f6308b88bcc44a989f12e1baddd97f22d4 (patch)
treefa76d099401455c6ea3ed146fccc24a5eb461948 /perl
parent16fc08e2d86dad152194829d21bc55b2ef0c8fb1 (diff)
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 'perl')
0 files changed, 0 insertions, 0 deletions