repo.or.cz
/
lcapit-junk-code.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Introduce old redir program
[lcapit-junk-code.git]
/
git
/
dump-test
blob
5df065f9be19f8e00761ca639589b33841d86364
1
#!/bin/bash
2
3
FILE
=
$1
4
REPO
=
$2
5
6
if
[
-z
"
$FILE
"
-o -z
"
$REPO
"
];
then
7
echo
"dump-test < sha1-list > < repo-abs-path >"
8
exit
1
9
fi
10
11
CONTENTS
=
$
(
awk
'{ print
$1
}'
$FILE
)
12
cd
$REPO
13
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
19
fi
20
done