diff options
Diffstat (limited to 'doc/tips/automatically_adding_metadata/pre-commit-annex')
-rwxr-xr-x | doc/tips/automatically_adding_metadata/pre-commit-annex | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/tips/automatically_adding_metadata/pre-commit-annex b/doc/tips/automatically_adding_metadata/pre-commit-annex index a77f7a8e3..2e07e3bf4 100755 --- a/doc/tips/automatically_adding_metadata/pre-commit-annex +++ b/doc/tips/automatically_adding_metadata/pre-commit-annex @@ -1,4 +1,4 @@ -#! /bin/sh +#!/bin/sh # # Copyright (C) 2014 Joey Hess <id@joeyh.name> # Copyright (C) 2016 Klaus Ethgen <Klaus@Ethgen.ch> @@ -112,7 +112,7 @@ if [ -n "$*" ]; then process "$f" done else - for f in "$(git diff-index --name-only --cached $against)"; do + git diff-index --name-only --cached $against | while read f; do process "$f" done fi |