@revant_one
When I try to get my custom_app
. I’m getting this error.
Note: The repo in private
If I try to get the app from git clone
it’s working and it’s asking username
and access_token
after enter the credentials it’s working. but it’s not working in bench get-app <URL>
using this command
bench get-app --branch main https://github.com/username/custom_app.git
Error
$ git clone https://github.com/username/custom_app.git --branch master --depth 1 --origin upstream
Cloning into 'Custom_app'...
remote: Repository not found.
fatal: repository 'https://github.com/username/custom_app.git ' not found
ERROR:
subprocess.CalledProcessError: Command 'git clone https://github.com/username/custom_app.git --branch master --depth 1 --origin upstream' returned non-zero exit status 128.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/frappe/.local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/home/frappe/.bench/bench/cli.py", line 127, in cli
bench_command()
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/frappe/.bench/bench/commands/make.py", line 159, in get_app
get_app(
File "/home/frappe/.bench/bench/app.py", line 437, in get_app
app.get()
File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/home/frappe/.bench/bench/app.py", line 194, in get
self.bench.run(
File "/home/frappe/.bench/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File "/home/frappe/.bench/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError
frappe@e7a98915bb45:/workspace/development/frappe-bench$ bench get-app https://github.com/username/custom_app.git
Getting custom_app
$ git clone https://github.com/username/custom_app.git --depth 1 --origin upstream
Cloning into 'custom_app'...
remote: Repository not found.
fatal: repository 'https://github.com/username/custom_app.git ' not found
ERROR:
subprocess.CalledProcessError: Command 'git clone https://github.com/username/custom_app.git --depth 1 --origin upstream' returned non-zero exit status 128.
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/frappe/.local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/home/frappe/.bench/bench/cli.py", line 127, in cli
bench_command()
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1130, in __call__
return self.main(*args, **kwargs)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1055, in main
rv = self.invoke(ctx)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1657, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 1404, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/home/frappe/.local/lib/python3.10/site-packages/click/core.py", line 760, in invoke
return __callback(*args, **kwargs)
File "/home/frappe/.bench/bench/commands/make.py", line 159, in get_app
get_app(
File "/home/frappe/.bench/bench/app.py", line 437, in get_app
app.get()
File "/home/frappe/.bench/bench/utils/render.py", line 126, in wrapper_fn
return fn(*args, **kwargs)
File "/home/frappe/.bench/bench/app.py", line 194, in get
self.bench.run(
File "/home/frappe/.bench/bench/bench.py", line 48, in run
return exec_cmd(cmd, cwd=cwd or self.cwd, _raise=_raise)
File "/home/frappe/.bench/bench/utils/__init__.py", line 158, in exec_cmd
raise CommandFailedError from subprocess.CalledProcessError(return_code, cmd)
bench.exceptions.CommandFailedError