X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/c82395b46d238948882045e76e7770319a4f40e8..99c529152847b7e20e48dc477925e315918eed5d:/stgit/basedir.py diff --git a/stgit/basedir.py b/stgit/basedir.py index c394572..81f2b40 100644 --- a/stgit/basedir.py +++ b/stgit/basedir.py @@ -42,3 +42,9 @@ def get(): __base_dir = __output('git-rev-parse --git-dir 2> /dev/null') return __base_dir + +def clear_cache(): + """Clear the cached location of .git + """ + global __base_dir + __base_dir = None