Resolves #483 case sensitivity

This commit is contained in:
Peter Cottle 2018-09-28 20:29:50 -05:00
parent 30ba0e6a39
commit e8d3bf8667
2 changed files with 11 additions and 0 deletions

View file

@ -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;