axii fails update step because on branch without set upstream branch
Bug Report
Summary and Bug Description
axii w upgrade
stops if on custom branch with no upstream branch due to fail in axii w update
Current Behavior
Currently only tested on Ubuntu 22.04 on origin/main c7fca8ec
[▽ code] xxx@xxx:~/code/simox$ git status On branch feature/linear-size-weight-scaling nothing to commit, working tree clean
[▽ code] xxx@xxx:~/code/simox$ axii w upgrade
...
Update module simox ...
Update results
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Module ┃ Status ┃ Summary ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ deps/bullet3 │ Succeeded │ Up to date on branch 'fix/pkgconfig' │
│ deps/coin/coin │ Succeeded │ Up to date on branch 'h2t' │
│ deps/coin/soqt │ Succeeded │ Up to date on branch 'fix/dont-overwrite-list-dir' │
│ deps/eigen3 │ Skipped │ Nothing to do, on tag or commit │
│ mmm/core │ Succeeded │ Up to date on branch 'master' │
│ mmm/tools │ Succeeded │ Up to date on branch 'master' │
│ semantic-object-relations │ Succeeded │ Up to date on branch 'master' │
│ simox │ Failed │ Update step failed │
│ tools/cmake/3.21 │ Skipped │ Nothing to do │
└───────────────────────────┴──────────────┴────────────────────────────────────────────────────┘
Error: Failed to execute step 'update' on module 'simox': Update step failed.
Changing to master branch
[▽ code] xxx@xxx:~/code/simox$ git checkout master Switched to branch 'master' Your branch is up to date with 'origin/master'.
[▽ code] xxx@xxx:~/code/simox$ axii w upgrade
...
Update module simox ...
Already up to date.
Update results
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Module ┃ Status ┃ Summary ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ deps/bullet3 │ Succeeded │ Up to date on branch 'fix/pkgconfig' │
│ deps/coin/coin │ Succeeded │ Up to date on branch 'h2t' │
│ deps/coin/soqt │ Succeeded │ Up to date on branch 'fix/dont-overwrite-list-dir' │
│ deps/eigen3 │ Skipped │ Nothing to do, on tag or commit │
│ mmm/core │ Succeeded │ Up to date on branch 'master' │
│ mmm/tools │ Succeeded │ Up to date on branch 'master' │
│ semantic-object-relations │ Succeeded │ Up to date on branch 'master' │
│ simox │ Succeeded │ Up to date on branch 'master' │
│ tools/cmake/3.21 │ Skipped │ Nothing to do │
└───────────────────────────┴──────────────┴────────────────────────────────────────────────────┘
Expected Behavior
axii w upgrade
works if a project is on custom branch (the update is just ignored)
Steps to Reproduce
Create new branch without upstream git checkout -b this-is-a-test
Run axii w upgrade
Diagnosis
Output of axii self report
┏━━━━━━━━┳━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓
┃ Scope ┃ Info ┃
┡━━━━━━━━╇━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┩
│ Axii │ Axii 23.01.1.0 @main-0 with shell integration │
│ OS │ Ubuntu 22.04.1 LTS │
│ Kernel │ Linux 5.15.0-56-generic #62-Ubuntu SMP Tue Nov 22 19:54:14 UTC 2022 │
│ │ x86_64 GNU/Linux │
│ Shell │ /bin/bash │
│ Python │ Python 3.10.6 │
│ Pip │ certifi==2022.6.15, charset-normalizer==2.0.12, click==8.0.0, │
│ │ colorama==0.4.5, commonmark==0.9.1, cycler==0.11.0, │
│ │ decorator==5.1.1, distro==1.7.0, docutils==0.17.1, gitdb==4.0.9, │
│ │ GitPython==3.1.18, idna==3.3, igraph==0.9.11, kiwisolver==1.4.3, │
│ │ matplotlib==3.3.0, networkx==2.5, notify2==0.3.1, numpy==1.23.0, │
│ │ Pillow==9.1.1, psutil==5.9.4, Pygments==2.12.0, pygraphviz==1.6, │
│ │ pyparsing==3.0.9, PyQt5==5.15.0, PyQt5-sip==12.11.0, │
│ │ python-dateutil==2.8.2, python-igraph==0.9.11, │
│ │ python-Levenshtein==0.12.2, requests==2.26.0, rich==10.9.0, │
│ │ rich-click==1.2.1, six==1.16.0, smmap==5.0.0, texttable==1.6.4, │
│ │ thefuzz==0.19.0, urllib3==1.26.9, xdg==5.1.1, zeroc-ice==3.7.0 │
└────────┴─────────────────────────────────────────────────────────────────────┘
More Relevant Logs or Screenshots
Edited by André Meixner