release-scripts: Remove misleading error message
In the normal course of script execution, clone_repo.sh routinely logs the following error message: error: pathspec 'xxx' did not match any file(s) known to git This error can be safely ignored, as the script moves on to checking out master instead. But it can be (and has been) mistakenly interpreted as the reason why the script fails. This change avoids logging the error message and logs a clearer explanation instead. Change-Id: Iaaaed7b0ea343bd81b8ad898654658545942a3d0
This commit is contained in:
parent
e8273da9e8
commit
885330b8e7
@ -194,6 +194,7 @@ else
|
|||||||
# directory already existed we might have checked out something else
|
# directory already existed we might have checked out something else
|
||||||
# before so just do it again).
|
# before so just do it again).
|
||||||
(cd $local_dir &&
|
(cd $local_dir &&
|
||||||
(git checkout $BRANCH || git checkout master) &&
|
(git checkout $BRANCH 2>/dev/null ||
|
||||||
retry git pull --ff-only)
|
(echo "No $BRANCH, checking out master"; git checkout master)) &&
|
||||||
|
retry git pull --ff-only)
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user