chiark / gitweb /
Use the ".." syntax for patch ranges
[stgit] / stgit / basedir.py
index c394572a81d9b3322a7a7cdccec0c1846d445dcc..81f2b40ff0da4ac754a7977f01aab92f652a6172 100644 (file)
@@ -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