Ignore both the stat file and the temp stat file

This commit is contained in:
Nathan Broadbent
2012-02-16 16:02:22 +08:00
parent 91477073fe
commit 5d46601889

View File

@@ -131,6 +131,10 @@ update_travis_ci_status() {
local stat_file=".travis_status~" local stat_file=".travis_status~"
local tmp_stat_file="$stat_file"".tmp" local tmp_stat_file="$stat_file"".tmp"
# Ignore stat files from git repo
git_ignore "$stat_file" ".git/info/exclude"
git_ignore "$tmp_stat_file" ".git/info/exclude"
# 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
local all_branches=$(\git branch -a) local all_branches=$(\git branch -a)
@@ -172,8 +176,6 @@ update_travis_ci_status() {
# Replace current stat file with finished update # Replace current stat file with finished update
mv -f "$tmp_stat_file" "$stat_file" mv -f "$tmp_stat_file" "$stat_file"
# Ignore stat file from git repo
git_ignore "$stat_file" ".git/info/exclude"
fi fi
fi fi
} }