File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff line change 27
27
from pipenv .patched .pip ._vendor .packaging .utils import canonicalize_name
28
28
from pipenv .project import Project
29
29
from pipenv .utils import console , err
30
- from pipenv .utils .dependencies import normalize_vcs_url
30
+ from pipenv .utils .dependencies import determine_vcs_revision_hash , normalize_vcs_url
31
31
from pipenv .utils .fileutils import create_tracked_tempdir
32
32
from pipenv .utils .requirements import normalize_name
33
33
@@ -604,16 +604,12 @@ def clean_skipped_result(
604
604
vcs = ireq .link .scheme .split ("+" , 1 )[0 ]
605
605
606
606
# Try to get reference from multiple sources
607
- ref = None
608
- if ireq .link .egg_fragment :
609
- ref = ireq .link .egg_fragment
610
- elif entry .get ("ref" ):
611
- ref = entry ["ref" ]
612
- elif hasattr (ireq .link , "ref" ):
613
- ref = ireq .link .ref
607
+ ref = determine_vcs_revision_hash (ireq , vcs , ireq .link )
614
608
615
609
if ref :
616
610
entry ["ref" ] = ref
611
+ elif ireq .link .hash :
612
+ entry ["ref" ] = ireq .link .hash
617
613
618
614
# Ensure VCS URL is present
619
615
if vcs not in entry :
You can’t perform that action at this time.
0 commit comments