When picking commits I get errors like the following:
stg pick -x 5b438f4ba315
Checking for changes in the working directory ... done
Importing commit 5b438f4ba315db4f8c1489d175656798d58c014f ...
Pushing patch "None" ... done
Error: Unhandled exception:
Traceback (most recent call last):
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/main.py", line 202, in _main
ret = command.func(parser, options, args)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/commands/pick.py", line 314, in func
stack, ref_stack, iw, commit, patchname, options
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/commands/pick.py", line 242, in __pick_commit
retval = trans.run(iw, print_current_patch=False)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/lib/transaction.py", line 309, in run
write(self.__msg)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/lib/transaction.py", line 301, in write
self.__stack.patches.new(pn, commit, msg)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/lib/stack.py", line 231, in new
p.set_commit(commit, msg)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/lib/stack.py", line 112, in set_commit
self.__write_compat_files(commit, msg)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/lib/stack.py", line 82, in __write_compat_files
write('authname',
d.author.name)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/lib/stack.py", line 61, in write
fn = os.path.join(self.__compat_dir, name)
File "/home/jsnitsel/lib/python2.7/site-packages/stgit/lib/stack.py", line 56, in __compat_dir
return os.path.join(self.__stack.directory, 'patches', self.__name)
File "/usr/lib64/python2.7/posixpath.py", line 68, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'startswith'
After doing an stg repair, the commit is there
stg --version
Stacked GIT 0.19-82-gd0dcf
git version 2.23.0
Python version 2.7.16 (default, Apr 30 2019, 15:54:43)
[GCC 9.0.1 20190312 (Red Hat 9.0.1-0.10)]
Running make test on the system, passes everything except 3 known breakages, so not sure
why it has a problem when I try to pick commits in the linux kernel repository.
Any ideas?
Thanks,
Jerry