From 60e25ab06bfe4aefcb06c1376074d717460d67af Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 3 Oct 2010 04:24:46 +0200 Subject: land: Force always emailing when there is no other mechanism of progress reporting. --- script/land-remote.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'script') 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: -- cgit