mirror of
https://github.com/git-for-windows/git.git
synced 2026-04-21 05:20:18 -05: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:
committed by
Junio C Hamano
parent
aa93845661
commit
6134caf2c1
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user