From: Florian La Roche <laroche@redhat.com>
To: git@vger.kernel.org
Subject: git-1.5 and bare repos
Date: Tue, 13 Mar 2007 17:09:50 +0100 [thread overview]
Message-ID: <20070313160950.GA14163@dudweiler.stuttgart.redhat.com> (raw)
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 reply other threads:[~2007-03-13 16:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-13 16:09 Florian La Roche [this message]
2007-03-13 17:03 ` git-1.5 and bare repos Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070313160950.GA14163@dudweiler.stuttgart.redhat.com \
--to=laroche@redhat.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).