]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Recognize a repo with a .git file as a git repo.
authorJoey Hess <joey@kitenet.net>
Tue, 27 Mar 2012 23:55:25 +0000 (19:55 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 27 Mar 2012 23:55:25 +0000 (19:55 -0400)
I don't currently test the content, although it probably is a gitdir: line.

debian/changelog
mr

index 8c01a726e97641d69c5419076b56c7d99bb14daa..e311dc6886bdcf89bca8f7a18efa4842d7fb3e81 100644 (file)
@@ -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.
   * 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 <joeyh@debian.org>  Fri, 02 Mar 2012 00:33:08 -0400
 
 
  -- Joey Hess <joeyh@debian.org>  Fri, 02 Mar 2012 00:33:08 -0400
 
diff --git a/mr b/mr
index cb4ff43b23d97adcb8daf138797adaf9722e37d4..6fc5d576cb1582a224e5c60eab2402ca597d2566 100755 (executable)
--- a/mr
+++ b/mr
@@ -1866,7 +1866,7 @@ lib =
        }
 
 svn_test = perl: -d "$ENV{MR_REPO}/.svn"
        }
 
 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"
 bzr_test = perl: -d "$ENV{MR_REPO}/.bzr"
 cvs_test = perl: -d "$ENV{MR_REPO}/CVS"
 hg_test  = perl: -d "$ENV{MR_REPO}/.hg"