Added debug options.
Signed-off-by: Tony Tkacik <tonydamage@gmail.com>
This commit is contained in:
parent
cf772c9e40
commit
2942760a41
1 changed files with 6 additions and 3 deletions
|
|
@ -2,10 +2,12 @@
|
|||
|
||||
# FIXME: Add checks
|
||||
# FIXME: Add logging
|
||||
REPO="$PWD";
|
||||
REPO=$(realpath "$PWD");
|
||||
TARGET_DIR="$1";
|
||||
BRANCH="$2";
|
||||
|
||||
env
|
||||
|
||||
function perform_clone_or_pull {
|
||||
target="$1";
|
||||
echo "Checking out working copy to remote: $target"
|
||||
|
|
@ -14,6 +16,7 @@ function perform_clone_or_pull {
|
|||
fi
|
||||
(
|
||||
cd "$target";
|
||||
echo "Working directory: $target"
|
||||
git fetch
|
||||
git checkout origin/$BRANCH
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue