summaryrefslogtreecommitdiff
path: root/git-diff-script
diff options
context:
space:
mode:
Diffstat (limited to 'git-diff-script')
-rwxr-xr-xgit-diff-script4
1 files changed, 1 insertions, 3 deletions
diff --git a/git-diff-script b/git-diff-script
index 03ed555e77..926f594be4 100755
--- a/git-diff-script
+++ b/git-diff-script
@@ -1,7 +1,5 @@
#!/bin/sh
-. git-sh-setup-script || die "Not a git archive"
-
-rev=($(git-rev-parse --revs-only "$@"))
+rev=($(git-rev-parse --revs-only "$@")) || exit
flags=($(git-rev-parse --no-revs --flags "$@"))
files=($(git-rev-parse --no-revs --no-flags "$@"))
case "${#rev[*]}" in