chiark / gitweb /
Dgit: break must_getcwd out into Dgit.pm
[dgit.git] / dgit
diff --git a/dgit b/dgit
index d772a9037c7b9aab429ccc0e2df9ad39f4754bf8..6780af79dc2a7ae3512671282951ef0d60940081 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -985,12 +985,6 @@ sub commit_getclogp ($) {
     $commit_getclogp_memo{$objid} = parsechangelog("-l$mclog");
 }
 
-sub must_getcwd () {
-    my $d = getcwd();
-    defined $d or fail "getcwd failed: $!";
-    return $d;
-}
-
 sub parse_dscdata () {
     my $dscfh = new IO::File \$dscdata, '<' or die $!;
     printdebug Dumper($dscdata) if $debuglevel>1;