summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-10-03 04:24:46 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-10-03 05:25:18 +0200
commit60e25ab06bfe4aefcb06c1376074d717460d67af (patch)
tree3ff77b14d1eb9900a9be91a8479c3155362e405a /script
parent0bb970dd8126f939f8612ba05553a5715789facd (diff)
downloadsamba-60e25ab06bfe4aefcb06c1376074d717460d67af.tar.gz
samba-60e25ab06bfe4aefcb06c1376074d717460d67af.tar.bz2
samba-60e25ab06bfe4aefcb06c1376074d717460d67af.zip
land: Force always emailing when there is no other mechanism of progress reporting.
Diffstat (limited to 'script')
-rwxr-xr-xscript/land-remote.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/script/land-remote.py b/script/land-remote.py
index 8f87b87f68..a705165f47 100755
--- a/script/land-remote.py
+++ b/script/land-remote.py
@@ -50,8 +50,9 @@ if not opts.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", samba_master, remote_repo]
+ # Bootstrap, git.samba.org is usually more easily accessible.
+ #remote_args = ["git", "clone", samba_master, remote_repo]
+ remote_args = ["if [ -d /data/git/samba.git ]; then git clone --shared /data/git/samba.git %s; else git clone --shared %s %s; fi" % (remote_repo, samba_master, remote_repo)]
#remote_args = ["git", "init", remote_repo]
print "%s$ %s" % (opts.host, " ".join(remote_args))
subprocess.check_call(["ssh", opts.host] + remote_args)
@@ -68,6 +69,11 @@ args = ["git", "push", "--force", "git+ssh://%s/%s" % (opts.host, remote_repo),
print "$ " + " ".join(args)
subprocess.check_call(args)
remote_args = ["cd", remote_repo, ";", "git", "checkout", "land", ";", "python", "-u", "./script/land.py", "--repository=%s" % remote_repo]
+
+if (opts.email and not (opts.foreground or opts.pushto or opts.push_master)):
+ # Force always emailing if there's nothing else to do
+ opts.always_email = True
+
if opts.email:
remote_args.append("--email=%s" % opts.email)
if opts.always_email: