diff options
author | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-03 22:28:12 +0200 |
---|---|---|
committer | Daniel Friesel <derf@derf.homelinux.org> | 2009-04-03 22:28:12 +0200 |
commit | 93aeb007f8886ff045fc010ab9f45c0473f03c04 (patch) | |
tree | d1199a528246c9b0945636071c8893a7187677eb /bin/pkg | |
parent | f95180c8b5c50aa0a6a800f2c795d58d23bc1bc2 (diff) |
pkg: vcs_upgrade: Only fail on non-master branch when not using origin
Diffstat (limited to 'bin/pkg')
-rwxr-xr-x | bin/pkg | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -246,17 +246,17 @@ function vcs_upgrade { for line in $(git branch); { [[ $line == \*\ * ]] && branch=${line#* } } - if [[ $branch != master ]] { - warn "$1: The currently checked out branch is not master, but '$branch'" \ - "Currently, pkg can only operate on the branch master" \ - " -> skipping repo, please fix manually or report a bug" - return 1 - } if ((GIT_USE_ORIGIN)) { # the package might be newly created and not have an origin yet vcs_fix_origin git pull } else { + if [[ $branch != master ]] { + warn "$1: The currently checked out branch is not master, but '$branch'" \ + "Currently, pkg can only operate on the branch master" \ + " -> skipping repo, please fix manually or report a bug" + return 1 + } git pull $PKG_ROOT/${PWD:t} master } } |