Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

testing for cloned repository

From: Robert White <hidden>
Date: 2016-06-15 22:42:34

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help