summaryrefslogtreecommitdiff
path: root/parse-options.h
diff options
context:
space:
mode:
authorDeskin Miller <deskinm@umich.edu>2008-11-06 05:07:39 (GMT)
committerEric Wong <normalperson@yhbt.net>2008-11-06 09:39:41 (GMT)
commit6e5121f26e95af02d2bbd6a982e44f16e74a67ce (patch)
treef945fed09aee92123cf4153be698e66004a3d0ec /parse-options.h
parentaab57205515d9a74fe20cd51c509f65757b97a66 (diff)
downloadgit-6e5121f26e95af02d2bbd6a982e44f16e74a67ce.zip
git-6e5121f26e95af02d2bbd6a982e44f16e74a67ce.tar.gz
git-6e5121f26e95af02d2bbd6a982e44f16e74a67ce.tar.bz2
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 'parse-options.h')
0 files changed, 0 insertions, 0 deletions