py-gilt icon indicating copy to clipboard operation
py-gilt copied to clipboard

Disambiguates checking out a tracking branch

Open nkakouros opened this issue 5 years ago • 3 comments

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 avatar Mar 19 '19 17:03 nkakouros

@nkakouros can you fix unit tests please?

retr0h avatar Mar 14 '20 20:03 retr0h

I am not familiar with writing test and currently lack the time to look into them.

nkakouros avatar Mar 17 '20 13:03 nkakouros

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?

nkakouros avatar Sep 23 '20 22:09 nkakouros