Expanded travis ci build status update, so that it can perform frequent updates for the current branch, and periodic updates for all branches. Updating all branches was taking over 20 minutes.

This commit is contained in:
Nathan Broadbent
2012-02-03 11:35:08 +08:00
parent 78cc2d46ea
commit f71372a8e9
2 changed files with 37 additions and 7 deletions

View File

@@ -167,7 +167,7 @@ function _git_index_count() {
# Returns the current git branch (returns nothing if not a git repository)
parse_git_branch() {
\git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
\git branch 2> /dev/null | sed "s/^\* \([^ ]*\)/\1/;tm;d;:m"
}
# If the working directory is clean, update the git repository. Otherwise, show changes.