This commit is contained in:
Tony Tkáčik 2019-05-03 13:21:58 +02:00
parent 3009b1d732
commit 7a9d47ae36

View file

@ -9,9 +9,6 @@ BRANCH="$2";
unset GIT_DIR
unset GIT_PUSH_OPTION_COUNT
env
function perform_clone_or_pull {
target="$1";
echo "Checking out working copy to remote: $target"
@ -22,13 +19,10 @@ function perform_clone_or_pull {
cd "$target"
echo -n "Working directory: "
pwd
ls -la
git fetch
pwd
git checkout origin/$BRANCH
git fetch &> /dev/null
echo "Checking out branch $BRANCH"
git checkout "origin/$BRANCH"
echo "Why it does not work?"
echo "Working copy checked out"
}