Ignore EPERM when pruning refs

Apparently OSX returns this when trying to remove a directory.

Change-Id: Ib824650ffc3d3945cec8020ccc5337cbe274471b
This commit is contained in:
James E. Blair 2015-06-10 16:22:15 -07:00
parent 844ea40f8e
commit b8ed113284
1 changed files with 1 additions and 1 deletions

View File

@ -1224,7 +1224,7 @@ class PruneChangeTask(Task):
try:
repo.deleteRef(change_ref)
except OSError, e:
if e.errno != errno.EISDIR:
if e.errno not in [errno.EISDIR, errno.EPERM]:
raise
session.delete(change)