git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ff5fdb6
)
land-remote: Checkout repository first.
author
Jelmer Vernooij
<jelmer@samba.org>
Fri, 1 Oct 2010 17:24:20 +0000
(19:24 +0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Sat, 2 Oct 2010 11:14:51 +0000
(13:14 +0200)
script/land-remote.py
patch
|
blob
|
history
diff --git
a/script/land-remote.py
b/script/land-remote.py
index 705b408bd909081b0afcc923a60ddc169d48bfcf..14f32357f9a48d88a613d20ca31f631fb511a956 100755
(executable)
--- a/
script/land-remote.py
+++ b/
script/land-remote.py
@@
-36,6
+36,7
@@
if not opts.remote_repo:
sys.exit(1)
remote_repo = stdout.rstrip()
print "Remote tempdir: %s" % remote_repo
sys.exit(1)
remote_repo = stdout.rstrip()
print "Remote tempdir: %s" % remote_repo
+ # Bootstrap, git.samba.org is close to sn-devel
remote_args = ["git", "clone", "git://git.samba.org/samba.git", remote_repo]
#remote_args = ["git", "init", remote_repo]
print "%s$ %s" % (opts.host, " ".join(remote_args))
remote_args = ["git", "clone", "git://git.samba.org/samba.git", remote_repo]
#remote_args = ["git", "init", remote_repo]
print "%s$ %s" % (opts.host, " ".join(remote_args))
@@
-44,10
+45,10
@@
else:
remote_repo = opts.remote_repo
print "Pushing local branch"
remote_repo = opts.remote_repo
print "Pushing local branch"
-args = ["git", "push", "--force", "git+ssh://%s/%s" % (opts.host, remote_repo), "HEAD:
HEAD
"]
+args = ["git", "push", "--force", "git+ssh://%s/%s" % (opts.host, remote_repo), "HEAD:
land
"]
print "$ " + " ".join(args)
subprocess.check_call(args)
print "$ " + " ".join(args)
subprocess.check_call(args)
-remote_args = ["
python", "%s/script/land.py" % remote_repo
, "--repository=%s" % remote_repo]
+remote_args = ["
cd", remote_repo, ";", "git", "checkout", "land", ";", "python", "./script/land.py"
, "--repository=%s" % remote_repo]
if opts.email:
remote_args.append("--email=%s" % opts.email)
if opts.always_email:
if opts.email:
remote_args.append("--email=%s" % opts.email)
if opts.always_email: