X-Git-Url: https://git.distorted.org.uk/~mdw/stgit/blobdiff_plain/1008fbce6fb0e9cfa0844303be14744d95f31c37..d884c4d8fd0a990d0746c7964bfd979a625c7ab2:/stgit/commands/clone.py diff --git a/stgit/commands/clone.py b/stgit/commands/clone.py index 17a7d36..455dd6e 100644 --- a/stgit/commands/clone.py +++ b/stgit/commands/clone.py @@ -23,7 +23,7 @@ from stgit.utils import * from stgit import stack, git -help = 'pull the changes from the remote repository' +help = 'clone a remote repository into local storage' usage = """%prog [options] Clone a GIT into the local and initialise the @@ -51,6 +51,9 @@ def func(parser, options, args): os.chdir(local_dir) git.checkout(tree_id = 'HEAD') - crt_series.init() + # 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'