Mercurial > kallithea
changeset 6605:52e689b37700
tests: use relative path when adding file to git repo (fixes error with newer git versions)
Newer git versions would fail 'git add /path/to/file' with:
fatal: /path/to/file: '/path/to/file' is outside repository
That caused test_push_unlocks_repository_git to fail.
To fix that, use relative instead of absolute path.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Thu, 27 Apr 2017 20:29:28 +0200 |
parents | f89dba9ea7c7 |
children | 29b69b044494 |
files | kallithea/tests/other/manual_test_vcs_operations.py |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/tests/other/manual_test_vcs_operations.py Wed May 03 03:41:45 2017 +0200 +++ b/kallithea/tests/other/manual_test_vcs_operations.py Thu Apr 27 20:29:28 2017 +0200 @@ -113,9 +113,9 @@ :param DEST: """ # commit some stuff into this repo - cwd = path = os.path.join(DEST) - #added_file = os.path.join(path, '%ssetupążźć.py' % _RandomNameSequence().next()) - added_file = os.path.join(path, '%ssetup.py' % _RandomNameSequence().next()) + cwd = os.path.join(DEST) + #added_file = '%ssetupążźć.py' % _RandomNameSequence().next() + added_file = '%ssetup.py' % _RandomNameSequence().next() Command(cwd).execute('touch %s' % added_file) Command(cwd).execute('%s add %s' % (vcs, added_file))