Преглед на файлове

suppress part of the git-status output

Joey Hess преди 19 години
родител
ревизия
1055317f8b
променени са 1 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 3 1
      scripts/Dpkg/Source/VCS/git.pm

+ 3 - 1
scripts/Dpkg/Source/VCS/git.pm

@@ -46,7 +46,9 @@ sub prep_tar {
 		if (/^\Qnothing to commit (working directory clean)\E$/) {
 			$clean=1;
 		}
-		$status.="git-status: $_";
+		else {
+			$status.="git-status: $_";
+		}
 	}
 	close GIT_STATUS;
 	# git-status exits 1 if there are uncommitted changes or if