chiark
/
gitweb
/
~ianmdlvl
/
dgit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
git-debrebase: Rename a variable $ups_tag to $ups_rev
[dgit.git]
/
git-debpush
diff --git
a/git-debpush
b/git-debpush
index c3b067dca4eff7feb0edab1812c33694f3e29e5e..2790560cf21658b5275bcd7d180db9909d696c59 100755
(executable)
--- a/
git-debpush
+++ b/
git-debpush
@@
-59,8
+59,10
@@
badusage () {
get_file_from_ref () {
local path=$1
get_file_from_ref () {
local path=$1
+ # redirect to /dev/null instead of using `grep -Eq` to avoid grep
+ # SIGPIPEing git-ls-tree
if git ls-tree --name-only -r "$branch" \
if git ls-tree --name-only -r "$branch" \
- | grep -E
q "^$path$"
; then
+ | grep -E
"^$path$" >/dev/null
; then
git cat-file blob $branch:$path
fi
}
git cat-file blob $branch:$path
fi
}