py-gilt
py-gilt copied to clipboard
Disambiguates checking out a tracking branch
When a repo contains a file named the same as a potential remote branch, then git checkout <name>
fails because git does not know what to checkout, the file or the branch.
git checkout <name> --
clarifies that it is the branch the user wants.
@nkakouros can you fix unit tests please?
I am not familiar with writing test and currently lack the time to look into them.
I tried taking a look at the tests. However, when I run tox
(even in the master branch) I get the following errors:
Required test coverage of 95.0% reached. Total coverage: 95.45%
====================================================================================================== 80 passed, 5 warnings in 9.27s =======================================================================================================
py37 create: /home/nikos/Projects/gilt/.tox/py37
SKIPPED: InterpreterNotFound: python3.7
doc create: /home/nikos/Projects/gilt/.tox/doc
doc installdeps: -rdoc-requirements.txt
ERROR: invocation failed (exit code 1), logfile: /home/nikos/Projects/gilt/.tox/doc/log/doc-1.log
================================================================================================================= log start =================================================================================================================
ERROR: Could not open requirements file: [Errno 2] No such file or directory: 'doc-requirements.txt'
WARNING: You are using pip version 20.1.1; however, version 20.2.3 is available.
You should consider upgrading via the '/home/nikos/Projects/gilt/.tox/doc/bin/python -m pip install --upgrade pip' command.
================================================================================================================== log end ==================================================================================================================
ERROR: could not install deps [-rdoc-requirements.txt]; v = InvocationError('/home/nikos/Projects/gilt/.tox/doc/bin/python -m pip install -rdoc-requirements.txt', 1)
__________________________________________________________________________________________________________________ summary __________________________________________________________________________________________________________________
format-check: commands succeeded
lint: commands succeeded
py36: commands succeeded
SKIPPED: py37: InterpreterNotFound: python3.7
ERROR: doc: could not install deps [-rdoc-requirements.txt]; v = InvocationError('/home/nikos/Projects/gilt/.tox/doc/bin/python -m pip install -rdoc-requirements.txt', 1)
If I understand correctly this means that the tests do not run for python 3.7 for some reason. Could you help me debug this?