X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/a5f1eba2761eba8987c94bf61e0a4b7528afbb5f..608961c24ee007e7a19db6be020f3be0d8155511:/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