From: Robert White <kranki@mac.com>
To: git@vger.kernel.org
Subject: testing for cloned repository
Date: Thu, 27 Jul 2006 09:46:20 -0400 [thread overview]
Message-ID: <0AC9E5E7-52CC-4715-BB26-622A2177308B@mac.com> (raw)
I am using:
if [ -f ".git/remotes/origin" ]; then
# this repository is a clone
fi
in a bash script to test if a repository was cloned and then do
appropriate pulls and pushes which fit my situation.
Is this the proper way to test this or should I be using something
different?
Thanks in advance for your help and for providing git. I have been
using it on my Linux and MacOSX machines without any problems.
Bob White
next reply other threads:[~2006-07-27 13:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-27 13:46 Robert White [this message]
2006-07-27 14:10 ` testing for cloned repository Johannes Schindelin
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=0AC9E5E7-52CC-4715-BB26-622A2177308B@mac.com \
--to=kranki@mac.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