How to resolve this error fatal: couldn't find remote ref develop

Enumerating objects: 338119, done.
Counting objects: 100% (338119/338119), done.
Delta compression using up to 2 threads
Compressing objects: 100% (72485/72485), done.
Writing objects: 100% (338119/338119), done.
Total 338119 (delta 263987), reused 338119 (delta 263987), pack-reused 0
Checking connectivity: 338119, done.
$ 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 “/home/ubuntu/.local/bin/bench”, line 8, in
File “/home/ubuntu/.local/lib/python3.10/site-packages/bench/”, line 132, in cli
File “/home/ubuntu/.local/lib/python3.10/site-packages/bench/commands/”, line 59, in update
File “/home/ubuntu/.local/lib/python3.10/site-packages/bench/utils/”, line 442, in update
pull_apps(apps=apps, bench_path=bench_path, reset=reset)
File “/home/ubuntu/.local/lib/python3.10/site-packages/bench/”, line 658, in pull_apps"git fetch --depth=1 --no-tags {remote} {branch}", cwd=app_dir)
File “/home/ubuntu/.local/lib/python3.10/site-packages/bench/”, line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File “/home/ubuntu/.local/lib/python3.10/site-packages/bench/utils/”, 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