Update Error on ERPNext v14.22.0

Hi,

I am facing update problems again with v14.22.0

The bench update --reset which I normally use gets some error on the GitHub - frappe/payments: A payments app for frappe repo.

git fetch --depth=1 --no-tags upstream develop' returned non-zero exit status 128

This is the update log:

bench update --reset
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/frappe
 * branch                  version-14 -> FETCH_HEAD
Backing up sites...
Backup Summary for my.erp.com at 2023-11-19 20:25:43.899744
Config  : ./my.erp.com/private/backups/20231119_202529-my.erp.com-site_config_backup.json 371.0B
Database: ./my.erp.com/private/backups/20231119_202529-my.erp.com-database.sql.gz         54.0MiB
Backup for Site my.erp.com has been successfully completed
Updating apps source...
$ git fetch --depth=1 --no-tags upstream version-14
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/frappe
 * branch                  version-14 -> FETCH_HEAD
$ git reset --hard upstream/version-14
HEAD is now at 815273c4e0 chore(release): Bumped to Version 14.55.0
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 381965, done.
Counting objects: 100% (381965/381965), done.
Delta compression using up to 2 threads
Compressing objects: 100% (81869/81869), done.
Writing objects: 100% (381965/381965), done.
Total 381965 (delta 298404), reused 381965 (delta 298404), pack-reused 0
Checking connectivity: 381965, done.
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream version-14
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/hrms
 * branch            version-14 -> FETCH_HEAD
$ git reset --hard upstream/version-14
HEAD is now at 3d50f15 chore(release): Bumped to Version 14.17.0
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 1718, done.
Counting objects: 100% (1718/1718), done.
Delta compression using up to 2 threads
Compressing objects: 100% (970/970), done.
Writing objects: 100% (1718/1718), done.
Total 1718 (delta 676), reused 1718 (delta 676), pack-reused 0
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream version-14
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/erpnext
 * branch                  version-14 -> FETCH_HEAD
$ git reset --hard upstream/version-14
HEAD is now at 236a064cd3 chore(release): Bumped to Version 14.48.1
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 499658, done.
Counting objects: 100% (499658/499658), done.
Delta compression using up to 2 threads
Compressing objects: 100% (102232/102232), done.
Writing objects: 100% (499658/499658), done.
Total 499658 (delta 393801), reused 499658 (delta 393801), pack-reused 0
Checking connectivity: 499658, done.
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream develop
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/bench_manager
 * branch            develop    -> FETCH_HEAD
$ git reset --hard upstream/develop
HEAD is now at cc4a1fd Merge pull request #76 from newhrorg/develop
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 71, done.
Counting objects: 100% (71/71), done.
Delta compression using up to 2 threads
Compressing objects: 100% (44/44), done.
Writing objects: 100% (71/71), done.
Total 71 (delta 14), reused 71 (delta 14), pack-reused 0
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream version-14
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/alyf-de/erpnext_germany
 * branch            version-14 -> FETCH_HEAD
$ git reset --hard upstream/version-14
HEAD is now at 79b7acb chore: bump version to 0.2.0
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 84, done.
Counting objects: 100% (84/84), done.
Delta compression using up to 2 threads
Compressing objects: 100% (62/62), done.
Writing objects: 100% (84/84), done.
Total 84 (delta 13), reused 84 (delta 13), pack-reused 0
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/bhavesh95863/whitelabel
 * branch            master     -> FETCH_HEAD
$ git reset --hard upstream/master
HEAD is now at 7d93307 fix: app name update in website setting
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 35, done.
Counting objects: 100% (35/35), done.
Delta compression using up to 2 threads
Compressing objects: 100% (27/27), done.
Writing objects: 100% (35/35), done.
Total 35 (delta 0), reused 35 (delta 0), pack-reused 0
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream master
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/twilio-integration
 * branch            master     -> FETCH_HEAD
$ git reset --hard upstream/master
HEAD is now at cb474c5 Merge pull request #36 from frappe/fix-hander-path
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 69, done.
Counting objects: 100% (69/69), done.
Delta compression using up to 2 threads
Compressing objects: 100% (56/56), done.
Writing objects: 100% (69/69), done.
Total 69 (delta 7), reused 69 (delta 7), pack-reused 0
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream develop
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0
From https://github.com/frappe/payments
 * branch            develop    -> FETCH_HEAD
$ git reset --hard upstream/develop
HEAD is now at 523b184 Merge pull request #54 from saullo/develop
$ git reflog expire --all
$ git gc --prune=all
Enumerating objects: 144, done.
Counting objects: 100% (144/144), done.
Delta compression using up to 2 threads
Compressing objects: 100% (99/99), done.
Writing objects: 100% (144/144), done.
Total 144 (delta 39), reused 144 (delta 39), pack-reused 0
$ find . -name "*.pyc" -delete
$ git fetch --depth=1 --no-tags upstream develop
fatal: couldn't find remote ref develop
ERROR: git fetch --depth=1 --no-tags upstream develop
subprocess.CalledProcessError: Command 'git fetch --depth=1 --no-tags upstream develop' returned non-zero exit status 128.

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/bin/bench", line 33, in <module>
    sys.exit(load_entry_point('frappe-bench', 'console_scripts', 'bench')())
  File "/home/frappe/.local/lib/python3.10/site-packages/bench/cli.py", line 132, in cli
    bench_command()
  File "/home/frappe/.local/lib/python3.10/site-packages/bench/commands/update.py", line 59, in update     
    update(
  File "/home/frappe/.local/lib/python3.10/site-packages/bench/utils/bench.py", line 442, in update        
    pull_apps(apps=apps, bench_path=bench_path, reset=reset)
  File "/home/frappe/.local/lib/python3.10/site-packages/bench/app.py", line 658, in pull_apps
    bench.run(f"git fetch --depth=1 --no-tags {remote} {branch}", cwd=app_dir)
  File "/home/frappe/.local/lib/python3.10/site-packages/bench/bench.py", line 48, in run
    return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
  File "/home/frappe/.local/lib/python3.10/site-packages/bench/utils/__init__.py", line 158, in exec_cmd   
    raise CommandFailedError(cmd) from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError: git fetch --depth=1 --no-tags upstream develop

I already reset and rebased the payments repo and checked the upstream repo - all seem fine.

Does anyone has a idea?
Please Help!