Skip to content

Commit

Permalink
fix the scp -P issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbzhong committed Sep 17, 2012
1 parent 6f05b34 commit 238c8d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/git-gerrit
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,8 @@ initGerrit() {
fi

getGerritServerAndProject
scp $port $host:hooks/commit-msg "${commit_hook}" || die "failed to add gerrit commit-msg hook."
local port_upper=`echo ${port} | awk '{print toupper($0)}'`
scp $port_upper $host:hooks/commit-msg "${commit_hook}" || die "failed to add gerrit commit-msg hook."
chmod +x "${commit_hook}"
echo "gerrit commit-msg hook setup correctly."
}
Expand Down

0 comments on commit 238c8d5

Please sign in to comment.