Closed
Description
This is from stackforge/gertty
2015-06-10 09:50:33,725 Exception running task <PruneChangeTask 2964>
Traceback (most recent call last):
File "/Users/scollins/src/stackforge/gertty/gertty/sync.py", line 1306, in _run
task.run(self)
File "/Users/scollins/src/stackforge/gertty/gertty/sync.py", line 1225, in run
repo.deleteRef(change_ref)
File "/Users/scollins/src/stackforge/gertty/gertty/gitrepo.py", line 272, in deleteRef
git.Reference.delete(repo, ref)
File "/Library/Python/2.7/site-packages/git/refs/symbolic.py", line 410, in delete
os.remove(abs_path)
OSError: [Errno 1] Operation not permitted: '/Users/scollins/src/openstack/neutron/.git/refs/changes/83/171983'
Here's what the git repo looks like in that hive
scollins@Sean-Collins-MBPr15 ~ » find /Users/scollins/src/openstack/neutron/.git/refs/changes/83/ 1 ↵
/Users/scollins/src/openstack/neutron/.git/refs/changes/83/
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//171983
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//175383
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//175383/4
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//175383/5
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//184383
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//184383/2
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//188883
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//188883/1
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//188883/2
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//188983
/Users/scollins/src/openstack/neutron/.git/refs/changes/83//188983/1
Metadata
Metadata
Assignees
Type
Projects
Relationships
Development
No branches or pull requests
Activity
Byron commentedon Jun 10, 2015
To me it seems this is not a problem of GitPython directly, as the user running GitPython doesn't seem to have permissions to remove a file from the filesystem.
You should be able to reproduce this kind of error by running
git br -D changes/83/171983
as the user that showed the given exception.Please let me know what you could find out..
Byron commentedon Jun 10, 2015
You can watch the development stream on youtube.
GitPython #9 [issue 299 - errors when deleting a branch]
sc68cal commentedon Jun 16, 2015
Byron commentedon Jun 18, 2015
Posting a stack-trace of the attempted deletion of a non-existent branch without any additional statement on how git-python would be involved puzzles me. After all, the question was if the user running the git-python script is actually allowed to delete a branch in terms of the required filesystem permissions.
From what I see, this isn't an issue of git-python, which is why it seems alright to close it.
sc68cal commentedon Jun 18, 2015
This is coming a stack trace from Gertty, as stated in the first post, which uses git-python!
Yes - the same user running Gertty is the same user that owns that directory and all files under it.
Please, I would appreciate reopening this issue so we can continue to diagnose.
Byron commentedon Jun 19, 2015
Unfortunately I don't believe this is an issue of git-python, as it looks like
gertty
wants to delete a non-existing branch but has no permission to do so. My guess is thatgertty
is running as a user who has no permission to alter the repository, for some reason.I have repeated myself many times already, which usually shows there is a dead-end here.
sc68cal commentedon Jun 30, 2015
I believe this is incorrect -
gertty
is running as my user account and is manipulating a git tree that I own.