Add heads back onto the ls-remote command.
This commit is contained in:
@@ -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