I have my repository in BitBucket. I used to give the following command and it will fetch the proper repository.
bench get-app https://firstname.lastname@example.org/username/repositry.git.
In a freshly installed setup using easy_installl, however the bench get-app is trying to find the repository in the github instead of bitbucket. Bench is invoking the following command
https://github.com/username/repository.git --depth 1 --origin upstream
My bench version is 5.0.0-dev
Any pointer or suggestion to overcome this issue?
go to the apps directory and clone the app.
git clone https://email@example.com/username/repositry.git
bench get-app https://firstname.lastname@example.org/username/repositry.git
and then answer
NO for overwriting and
YES for reinstalling
@amadhaji. I tried your suggestion. However in the get-app step, it is still asking for the user credentials from github, instead of bitbucket. The problem still persist.
@saravana . after cloning the app and being sure the app directory is found in apps directory.
when use get-app it will show something like:
A directory for the application “repositry” already exists.
Do you want to continue and overwrite it? [y/N]:
and then it will show:
Do you want to reinstall the existing application? [y/N]:
@amadhaji Thanks for the solution.
better solution I have find.
An easier workaround would be downgrading the Bench CLI to the unbroken version. Although we’re working on getting the fix
https://github.com/frappe/bench/pull/1233 merged and make a release soon.
pip install -U frappe-bench==5.6.0
The breaking bugs have been fixed in the patch releases that have come since. Upgrade Bench to the latest version (
v5.7.4) running the following command:
pip install -U frappe-bench