Update
This commit is contained in:
parent
3009b1d732
commit
7a9d47ae36
1 changed files with 3 additions and 9 deletions
|
|
@ -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"
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue