Skip to content

Commit 9aea005

Browse files
committed
make useable for submodules
git ls-tree returnes `commit` entries for submodules. We remove them from the output. Without this the script crashes with this trace: Traceback (most recent call last): File "./update.py", line 138, in <module> newBlobs = updateBlobIDs (tag) File "./update.py", line 46, in updateBlobIDs hash, filename = blob.split (b' ') ValueError: too many values to unpack (expected 2) Signed-off-by: Silvio Fricke <[email protected]>
1 parent b7e1cd3 commit 9aea005

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ case $cmd in
136136

137137
v=`echo $1 | version_rev`
138138
git ls-tree -r "$v" |
139-
sed -r "s/^\S* blob (\S*)\t(([^/]*\/)*(.*))$/$format/"
139+
sed -r "s/^\S* blob (\S*)\t(([^/]*\/)*(.*))$/$format/; /^\S* commit .*$/d"
140140
;;
141141

142142
tokenize-file)

0 commit comments

Comments
 (0)