From: Joey Hess Date: Tue, 27 Mar 2012 23:55:25 +0000 (-0400) Subject: Recognize a repo with a .git file as a git repo. X-Git-Url: https://git.madduck.net/code/myrepos.git/commitdiff_plain/7f35eb50a173685b36d65a3f66aaeebf60a09342 Recognize a repo with a .git file as a git repo. I don't currently test the content, although it probably is a gitdir: line. --- diff --git a/debian/changelog b/debian/changelog index 8c01a72..e311dc6 100644 --- a/debian/changelog +++ b/debian/changelog @@ -3,6 +3,7 @@ mr (1.12) UNRELEASED; urgency=low * Ignore nonzero exit status of hg pull, which can happen when there were no changes to pull. Closes: #661870 * Add vcsh to Suggests. + * Recognize a repo with a .git file as a git repo. -- Joey Hess Fri, 02 Mar 2012 00:33:08 -0400 diff --git a/mr b/mr index cb4ff43..6fc5d57 100755 --- a/mr +++ b/mr @@ -1866,7 +1866,7 @@ lib = } svn_test = perl: -d "$ENV{MR_REPO}/.svn" -git_test = perl: -d "$ENV{MR_REPO}/.git" +git_test = perl: -e "$ENV{MR_REPO}/.git" bzr_test = perl: -d "$ENV{MR_REPO}/.bzr" cvs_test = perl: -d "$ENV{MR_REPO}/CVS" hg_test = perl: -d "$ENV{MR_REPO}/.hg"