mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-25 07:28:35 +02:00
Resolves #483 case sensitivity
This commit is contained in:
parent
30ba0e6a39
commit
e8d3bf8667
2 changed files with 11 additions and 0 deletions
|
@ -1663,6 +1663,10 @@ GitEngine.prototype.resolveStringRef = function(ref) {
|
|||
if (this.refs[ref]) {
|
||||
return this.refs[ref];
|
||||
}
|
||||
// Commit hashes like C4 are case insensitive
|
||||
if (ref.match(/^c\d+$/) && this.refs[ref.toUpperCase()]) {
|
||||
return this.refs[ref.toUpperCase()];
|
||||
}
|
||||
|
||||
// Attempt to split ref string into a reference and a string of ~ and ^ modifiers.
|
||||
var startRef = null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue