From 7f35eb50a173685b36d65a3f66aaeebf60a09342 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 27 Mar 2012 19:55:25 -0400 Subject: [PATCH 1/1] 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. --- debian/changelog | 1 + mr | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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" -- 2.39.5