Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix tig-pick output redirection #832

Merged
merged 2 commits into from
May 27, 2018
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Fix sh compatibility in tig-pick
odnoletkov committed May 26, 2018
commit 04cb302123d5d84637286ee977c75b0d623c418d
2 changes: 1 addition & 1 deletion contrib/tig-pick
Original file line number Diff line number Diff line change
@@ -40,7 +40,7 @@ stderr=$(tig "$@" 3>&2 2>&1 1>&3 3>&-) || {
commit=$(echo "$stderr" | tail -n1)

# Check return value for valid commit ID
if ! echo -n "$commit" | grep -iqE '^[0-9a-f]{40}$'; then
if ! printf '%s' "$commit" | grep -iqE '^[0-9a-f]{40}$'; then
echo "$stderr" >&2
exit 1
fi