nfdi4plants / ARCCommander

Tool to manage your ARCs
MIT License
11 stars 9 forks source link

[BUG] ARC Commander creates new remote repository without using "arc sync -f" #139

Open Martin-Kuhl opened 2 years ago

Martin-Kuhl commented 2 years ago

Describe the bug Usually the ARC Commander reports an error when syncing ARCs to a remote repository that does not exist so far ensuring that the URL was spelled correctly. Afterwards, arc sync -f can be used to force push. This morning, AC reported ERROR: GIT: fatal: repository "https://git.nfdi4plants.org/martinkuhl/newtestARC.git/" not found after using arc sync -r "https://git.nfdi4plants.org/martinkuhl/newtestARC", but created the remote repository anyways.

To Reproduce

  1. Initialize an ARC
  2. Run arc sync -r "https://git.nfdi4plants.org/YourName/NewRemoteRepository"
  3. Check if new remote repository was created, although flag -f was not set

Expected behavior AC should report expected error telling you to force push using arc sync -f