git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git-1.5 and bare repos
@ 2007-03-13 16:09 Florian La Roche
  2007-03-13 17:03 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Florian La Roche @ 2007-03-13 16:09 UTC (permalink / raw)
  To: git

Here a patch to correctly allow also bare
repositories.

regards,

Florian La Roche



--- git-sh-setup.sh	2007-03-05 03:15:33.000000000 +0100
+++ git-sh-setup	2007-03-13 17:08:22.000000000 +0100
@@ -49,8 +49,8 @@
 
 require_work_tree () {
 	test $(is_bare_repository) = false &&
-	test $(git-rev-parse --is-inside-git-dir) = false ||
-	die "fatal: $0 cannot be used without a working tree."
+	{ test $(git-rev-parse --is-inside-git-dir) = false ||
+	  die "fatal: $0 cannot be used without a working tree."; }
 }
 
 if [ -z "$LONG_USAGE" ]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-13 17:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-13 16:09 git-1.5 and bare repos Florian La Roche
2007-03-13 17:03 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).