File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -724,8 +724,9 @@ def write(self):
724
724
with open (self .lib ) as f :
725
725
lib_repo = Repo .fromurl (f .read ().strip ())
726
726
if (formaturl (lib_repo .url , 'https' ) == formaturl (self .url , 'https' ) # match URLs in common format (https)
727
- and (lib_repo .hash == self .hash # match hashes, even if hash is None (valid for repos with no revisions)
728
- or lib_repo .hash == self .hash [0 :len (lib_repo .hash )])): # match long and short hash formats
727
+ and (lib_repo .hash == self .hash # match hashes, even if hash is None (valid for repos with no revisions)
728
+ or (lib_repo .hash and self .hash
729
+ and lib_repo .hash == self .hash [0 :len (lib_repo .hash )]))): # match long and short hash formats
729
730
#print self.name, 'unmodified'
730
731
progress ()
731
732
return
You can’t perform that action at this time.
0 commit comments