X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/98290387570c0494bd5303e2f7e9136c43745bcc..e4fc1f59f679b4f0b5c6805feaf9da0df2cd370f:/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'