git: fixed wrong regex on sha search
This commit is contained in:
parent
51da82dce0
commit
a31c7f35e5
1 changed files with 1 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ from rhodecode.lib.vcs.exceptions import (
|
|||
RepositoryError, TagAlreadyExistError, TagDoesNotExistError, VCSError, UnresolvedFilesInRepo)
|
||||
|
||||
|
||||
SHA_PATTERN = re.compile(r'^[[0-9a-fA-F]{12}|[0-9a-fA-F]{40}]$')
|
||||
SHA_PATTERN = re.compile(r'^([0-9a-fA-F]{12}|[0-9a-fA-F]{40})$')
|
||||
|
||||
log = logging.getLogger(__name__)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue