X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/a5f1eba2761eba8987c94bf61e0a4b7528afbb5f..608961c24ee007e7a19db6be020f3be0d8155511:/stgit/commands/clone.py diff --git a/stgit/commands/clone.py b/stgit/commands/clone.py index 9ad76a6..455dd6e 100644 --- a/stgit/commands/clone.py +++ b/stgit/commands/clone.py @@ -51,6 +51,9 @@ def func(parser, options, args): os.chdir(local_dir) git.checkout(tree_id = 'HEAD') + # be sure to forget any cached value for .git, since we're going + # to work on a brand new repository + basedir.clear_cache() stack.Series().init() print 'done'