Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deploy
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,10 @@ setup() {
log cloning $repo
if test "$fetch" != "fast"; then
log "full fetch"
run "git clone --branch $branch $repo $path/source"
run "git clone --branch '$branch' '$repo' $path/source"
else
log "fast fetch"
run "git clone --depth=5 --branch $branch $repo $path/source"
run "git clone --depth=5 --branch '$branch' '$repo' $path/source"
fi
test $? -eq 0 || abort failed to clone
run "ln -sfn $path/source $path/current"
Expand Down Expand Up @@ -274,7 +274,7 @@ deploy() {

# 5- Reset to ref
log resetting HEAD to $ref
run "cd $path/source && git reset --hard $ref"
run "cd $path/source && git reset --hard '$ref'"
test $? -eq 0 || abort git reset failed

# 6- Link current
Expand Down