瀏覽代碼

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