Now that the sha1 expression syntax supports looking up a ref's
value at a prior point in time through the '@' operator the '@'
operator should not be permitted in a ref name.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
---
90d3212d5351d2f6c6ad33578c9f9df2e07af12e
refs.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
90d3212d5351d2f6c6ad33578c9f9df2e07af12e
diff --git a/refs.c b/refs.c
index eeb1196..2530c99 100644
--- a/refs.c
+++ b/refs.c
@@ -213,14 +213,14 @@ int get_ref_sha1(const char *ref, unsign
*
* - any path component of it begins with ".", or
* - it has double dots "..", or
- * - it has ASCII control character, "~", "^", ":" or SP, anywhere, or
+ * - it has ASCII control character, "@", "~", "^", ":" or SP,
* - it ends with a "/".
*/
static inline int bad_ref_char(int ch)
{
return (((unsigned) ch) <= ' ' ||
- ch == '~' || ch == '^' || ch == ':' ||
+ ch == '@' || ch == '~' || ch == '^' || ch == ':' ||
/* 2.13 Pattern Matching Notation */
ch == '?' || ch == '*' || ch == '[');
}
--
1.3.3.gfad60
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
| Andrew Morton | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| David Miller | Re: [GIT]: Networking |
| Eric Paris | [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
| Natalie Protasevich | [BUG] New Kernel Bugs |
git: | |
| Jakub Narebski | Re: VCS comparison table |
| Ingo Molnar | [OT] Your branch is ahead of the tracked remote branch 'origin/master' by 50 commi... |
| Li Frank-B20596 | why not TortoiseGit |
| Joe Fiorini | Undo git-rm without commit? |
| Arjan van de Ven | Re: [GIT]: Networking |
| Andrew Morton | Re: [BUG] New Kernel Bugs |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Glenn Griffin | [PATCH] Add IPv6 support to TCP SYN cookies |
| Marius ROMAN | 1440x900 resolution problem |
| Martin Schröder | Re: Real men don't attack straw men |
| Otto Moerbeek | Re: SCP/SFTP: Couldn't open /dev/null |
| Siju George | Skype on OpenBSD 4.1 using Fedora RPM |
