Skip to content

Commit 170e65a

Browse files
src/udroid.sh: (--upgrade) fetch from origin before looking for changes
fixes: issues with --upgrade when log has old origin cache
1 parent 5289ef1 commit 170e65a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

udroid/src/udroid.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1134,6 +1134,7 @@ _upgrade() {
11341134
git -C $repo_cache checkout $branch
11351135
fi
11361136

1137+
git -C $repo_cache fetch --all --quiet
11371138
new_commits=$(git -C $repo_cache --no-pager log --oneline HEAD..origin)
11381139
if [[ -z $new_commits ]]; then
11391140
LOG "upgrade(): already in the lastest version, no need to upgrade"

0 commit comments

Comments
 (0)