git-1.5 and bare repos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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" ]
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]