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