Escape git command (in case it's aliased)

This commit is contained in:
Nathan Broadbent
2012-02-03 15:03:20 +08:00
parent f71372a8e9
commit f403169176

View File

@@ -134,7 +134,7 @@ update_travis_ci_status() {
# Either update all branches, or only current branch # Either update all branches, or only current branch
if [ "$UPDATE_ALL_BRANCHES" = "true" ]; then if [ "$UPDATE_ALL_BRANCHES" = "true" ]; then
# All branches on origin remotes # All branches on origin remotes
local branches="$(git branch -a | sed "s/ *remotes\/origin\///;tm;d;:m;/^HEAD/d;")" local branches="$(\git branch -a | sed "s/ *remotes\/origin\///;tm;d;:m;/^HEAD/d;")"
# Create a new, blank temp file # Create a new, blank temp file
echo -n > "$tmp_stat_file" echo -n > "$tmp_stat_file"
else else