Introduce old redir program
[lcapit-junk-code.git] / git / dump-test
blob5df065f9be19f8e00761ca639589b33841d86364
1 #!/bin/bash
3 FILE=$1
4 REPO=$2
6 if [ -z "$FILE" -o -z "$REPO" ]; then
7 echo "dump-test < sha1-list > < repo-abs-path >"
8 exit 1
9 fi
11 CONTENTS=$(awk '{ print $1 }' $FILE)
12 cd $REPO
14 for line in $(echo $CONTENTS); do
15 git-cat-file -t $line 1> /dev/null
16 if [ $? -ne 0 ]; then
17 echo "failed for $line"
18 exit 1
20 done