mirror of
https://github.com/git/git
synced 2024-10-28 19:25:47 +00:00
remote-hg: use hashlib instead of hg sha1 util
To be in sync with remote-bzr. Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
aa93845661
commit
6134caf2c1
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ import shutil
|
|||
import subprocess
|
||||
import urllib
|
||||
import atexit
|
||||
import urlparse
|
||||
import urlparse, hashlib
|
||||
|
||||
#
|
||||
# If you want to switch to hg-git compatibility mode:
|
||||
|
@ -933,7 +933,7 @@ def main(args):
|
|||
|
||||
if alias[4:] == url:
|
||||
is_tmp = True
|
||||
alias = util.sha1(alias).hexdigest()
|
||||
alias = hashlib.sha1(alias).hexdigest()
|
||||
else:
|
||||
is_tmp = False
|
||||
|
||||
|
|
Loading…
Reference in a new issue