Skip to content

Commit

Permalink
Fix 1.0.1 upgrade issue
Browse files Browse the repository at this point in the history
Also fix CI problem with testing upgrade script on tags
  • Loading branch information
pguyot committed Nov 19, 2022
1 parent bc606d5 commit 6a847d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: 🛠 Test upgrade
on:
push:
branches:
- master
- release
- releng

jobs:
test_upgrade:
Expand Down Expand Up @@ -33,7 +36,7 @@ jobs:
base_image: https://github.com/nabaztag2018/pynab/releases/download/v1.0.0/pynab-v1.0.0-zero_raspbian.img.xz
install_dir: /opt/pynab
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Run test script in chroot environment
uses: pguyot/arm-runner-action@v2
id: arm_runner_tests
Expand Down
2 changes: 1 addition & 1 deletion nabweb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def do_get_repository_info(repository, relpath):
commits_count = (
os.popen(
f"sudo -u \\#{repo_owner} "
f"git -C {repo_dir} fetch --tags >/dev/null && "
f"git -C {repo_dir} fetch -t -f >/dev/null && "
f"git -C {repo_dir} rev-list --count HEAD..{upstream_branch}"
)
.read()
Expand Down

0 comments on commit 6a847d6

Please sign in to comment.