Add heads back onto the ls-remote command.
This commit is contained in:
1 parent
aa3075a9fc
commit
73e527640f
1 file changed
+1
-1
@@ -564,7 +564,7 @@
|
|||||||
echo -e "\n*** `basename $project` ***"
|
echo -e "\n*** `basename $project` ***"
|
||||||
cd $project
|
cd $project
|
||||||
if [[ -d .git ]]; then
|
if [[ -d .git ]]; then
|
||||||
git ls-remote --exit-code origin dev
|
git ls-remote --exit-code --heads origin dev
|
||||||
dev_exists="$?"
|
dev_exists="$?"
|
||||||
if [[ "$dev_exists" == 0 ]]; then
|
if [[ "$dev_exists" == 0 ]]; then
|
||||||
git switch dev
|
git switch dev
|
||||||
|
|||||||
Reference in new issue
Block a user