GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Windows with_rw-directory TC helper fails to delete repos · Issue #32 · gitpython-developers/gitdb
This repository was archived by the owner on Jul 26, 2026. It is now read-only.
This repository was archived by the owner on Jul 26, 2026. It is now read-only.
Windows with_rw-directory TC helper fails to delete repos #32Copy link Copy link Open Labels DescriptionOn Windows, The fix is something like this: ...
finally:
# Need to collect here to be sure all handles have been closed. It appears
# a windows-only issue. In fact things should be deleted, as well as
# memory maps closed, once objects go out of scope. For some reason
# though this is not the case here unless we collect explicitly.
if not keep:
gc.collect()
# From http://stackoverflow.com/a/4829285/548792
def on_rm_error(func, path, exc_info):
import stat
os.chmod(path, stat.S_IWRITE)
func(path)
shutil.rmtree(path, onerror=on_rm_error)Activity
MetadataMetadataAssigneesLabelsTypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |