Просмотр исходного кода

make uncommitted changes in the WC be an error, not a warning.

Joey Hess лет назад: 19
Родитель
Сommit
db69460aa3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      scripts/Dpkg/Source/VCS/git.pm

+ 2 - 2
scripts/Dpkg/Source/VCS/git.pm

@@ -28,7 +28,7 @@ use Dpkg::Gettext;
 push (@INC, $dpkglibdir);
 require 'controllib.pl';
 
-# Called before a tarball is created, to prepate the tar directory.
+# Called before a tarball is created, to prepare the tar directory.
 sub prep_tar {
 	my $srcdir=shift;
 	my $tardir=shift;
@@ -59,7 +59,7 @@ sub prep_tar {
 	}
 	if (! $clean) {
 		print $status;
-		main::warnerror(_g("working directory is not clean"));
+		main::error(_g("uncommitted changed in working directory"));
 	}
 
 	# garbage collect the repo