From 5d466018896b9e64c263c856692369e281c96438 Mon Sep 17 00:00:00 2001 From: Nathan Broadbent Date: Thu, 16 Feb 2012 16:02:22 +0800 Subject: [PATCH] Ignore both the stat file and the temp stat file --- lib/git/tools.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/git/tools.sh b/lib/git/tools.sh index eb7dd39..e481b36 100644 --- a/lib/git/tools.sh +++ b/lib/git/tools.sh @@ -131,6 +131,10 @@ update_travis_ci_status() { local stat_file=".travis_status~" 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 if [ "$UPDATE_ALL_BRANCHES" = "true" ]; then local all_branches=$(\git branch -a) @@ -172,8 +176,6 @@ update_travis_ci_status() { # Replace current stat file with finished update mv -f "$tmp_stat_file" "$stat_file" - # Ignore stat file from git repo - git_ignore "$stat_file" ".git/info/exclude" fi fi }