Commit 1f6e3f62 authored by Michal Sojka's avatar Michal Sojka

Reindent the whole loop consistently with the rest of the file

parent 4bd1fb89
......@@ -52,18 +52,18 @@ handle_commit() {
(
declare -A trees=()
while read -r mode type hash path; do
path="./$path"
case "$path" in
$glob)
upper_path="${path%/*}"
trees[$upper_path]+="$(echo -e "$mode tree $hash\t${path##*/}")"$'\n'
;;
$upper_path)
new_hash=$(echo -n "${trees[$path]}" | git mktree)
upper_path="${path%/*}"
trees[$upper_path]+="$(echo -e "040000 tree $new_hash\t${path##*/}")"$'\n'
;;
esac
path="./$path"
case "$path" in
$glob)
upper_path="${path%/*}"
trees[$upper_path]+="$(echo -e "$mode tree $hash\t${path##*/}")"$'\n'
;;
$upper_path)
new_hash=$(echo -n "${trees[$path]}" | git mktree)
upper_path="${path%/*}"
trees[$upper_path]+="$(echo -e "040000 tree $new_hash\t${path##*/}")"$'\n'
;;
esac
done
echo -n "${trees[.]}" | git mktree ))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment