Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[PATCH] _git: Forgot to suppress error output in __git_is_treeish().
- X-seq: zsh-workers 25564
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: zsh-workers <zsh-workers@xxxxxxxxxx>
- Subject: [PATCH] _git: Forgot to suppress error output in __git_is_treeish().
- Date: Sun, 31 Aug 2008 08:36:44 +0200
- Cc: "Clint Adams" <clint@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:mime-version:content-type; bh=NmOVRvmZnrZs3JEG6pqHhQca+oO+2cHbK00FiF9LLhY=; b=A8PhnJgy3VEED0l0Ht8DPuhSBaq97rPDfewglGbFZCOEo6nfGILS5spea4aQJklCtX g7o+P+5WcmBV39PK2RDe0Byc2BtJlkNtWNJUgN++IKAWJEx1olaFf/Qs0BtPZF9q2vrx fXGKd9clFnQeI0L/Ws4XJ6Aa0U+gkscPvwaZo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type; b=J3S7l1GkLPtwzDeN5eB7n0GGlYbvZYkNByzuXx5nfap9eUHtt9r4QFPDQAf4rI7kg5 75j7q6ugiz79IsFQ+bB54NSt89Nniz0KzKvT4/fSm0ZiCcPfiVzl/GKnNz90NIe3S919 Ow8LVNyUhWy9ODf9v9SZvJNGAyFIoAf5+jvcM=
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
---
Completion/Unix/Command/_git | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git
index 8416542..e513e16 100644
--- a/Completion/Unix/Command/_git
+++ b/Completion/Unix/Command/_git
@@ -1539,7 +1539,7 @@ __git_zstyle_default
':completion::complete:git-branch:delete-argument-rest:*' i
(( $+functions[__git_is_treeish] )) ||
__git_is_treeish () {
local sha1
- sha1="$(git rev-parse $1)"
+ sha1="$(git rev-parse $1 -- 2> /dev/null)" &&
[[ "$(git cat-file -t "${sha1}^{tree}" 2> /dev/null)" == tree ]]
}
--
Mikael Magnusson
Attachment:
0001-_git-Forgot-to-suppress-error-output-in-__git_is_tr.patch
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author