summaryrefslogtreecommitdiff
path: root/dgit
diff options
context:
space:
mode:
Diffstat (limited to 'dgit')
-rwxr-xr-xdgit5
1 files changed, 3 insertions, 2 deletions
diff --git a/dgit b/dgit
index 555e1c0..7c28253 100755
--- a/dgit
+++ b/dgit
@@ -5889,9 +5889,10 @@ sub cmd_import_dsc {
parse_dscdata();
my $dgit_commit = $dsc->{$ourdscfield[0]};
- if (defined $dgit_commit &&
- !forceing [qw(import-dsc-with-dgit-field)]) {
+ if (defined $dgit_commit
+ && !forceing [qw(import-dsc-with-dgit-field)]) {
$dgit_commit =~ m/\w+/ or fail "invalid hash in .dsc";
+ $dgit_commit = $&;
progress "dgit: import-dsc of .dsc with Dgit field, using git hash";
my @cmd = (qw(sh -ec),
"echo $dgit_commit | git cat-file --batch-check");