~mdw
/
stgit
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move identification of parent branch's remote def up into stack class.
[stgit]
/
stgit
/
commands
/
clone.py
diff --git
a/stgit/commands/clone.py
b/stgit/commands/clone.py
index
17a7d36
..
455dd6e
100644
(file)
--- a/
stgit/commands/clone.py
+++ b/
stgit/commands/clone.py
@@
-23,7
+23,7
@@
from stgit.utils import *
from stgit import stack, git
from stgit import stack, git
-help = '
pull the changes from the remote repository
'
+help = '
clone a remote repository into local storage
'
usage = """%prog [options] <repository> <dir>
Clone a GIT <repository> into the local <dir> and initialise the
usage = """%prog [options] <repository> <dir>
Clone a GIT <repository> into the local <dir> and initialise the
@@
-51,6
+51,9
@@
def func(parser, options, args):
os.chdir(local_dir)
git.checkout(tree_id = 'HEAD')
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'
print 'done'