git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git-1.5 and bare repos

From
FRFlorian La Roche <laroche@redhat.com>
Date
Mar 13, 2007, 16:09 UTC
Message-ID
<20070313160950.GA14163@dudweiler.stuttgart.redhat.com>

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" ]
Next: Junio C Hamano
Message 1 of 2 in “git-1.5 and bare repos”
  1. Florian La RocheMar 13, 2007
  2. Junio C HamanoMar 13, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.