summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2013-09-24 23:56:03 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2013-09-24 23:56:03 +0100
commit540ca788948431a6dba9d0a47fd5a5c3222d0e26 (patch)
treed542a3a7a9abec7816af5af76cf7909aecf59086 /dgit
parente7d9e0826831352cee9b27b5a94ac728e7d68982 (diff)
wip changes for remote push - fixes
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit4
1 files changed, 2 insertions, 2 deletions
diff --git a/dgit b/dgit
index 3a91929..e8b6c30 100755
--- a/dgit
+++ b/dgit
@@ -998,11 +998,11 @@ END
runcmd_ordryrun @sign_cmd;
if (!$dryrun) {
$tagobjfn = $tfn->('.signed.tmp');
- runcmd shell_cmd "> $tagobjfn", qw(cat --),
+ runcmd shell_cmd "exec >$tagobjfn", qw(cat --),
$tfn->('.tmp'), $tfn->('.tmp.asc');
}
}
- my $tag_obj_hash = runcmd @git, qw(hash-object -w -t tag), $tagobjfn;
+ my $tag_obj_hash = cmdoutput @git, qw(hash-object -w -t tag), $tagobjfn;
runcmd_ordryrun @git, qw(verify-tag), $tag_obj_hash;
runcmd_ordryrun @git, qw(update-ref), "refs/tags/$tag", $tag_obj_hash;
runcmd_ordryrun @git, qw(tag -v --), $tag;