Lines Matching full:line
22 def matchline(line): argument
23 if "MIRROR" in line or ".*" in line or "GNOME_GIT" in line:
34 for line in old_file:
35 … if ("git://" in line or "gitsm://" in line) and "branch=" not in line and matchline(line):
36 if line.endswith('"\n'):
37 line = line.replace('"\n', ';branch=master"\n')
38 elif re.search('\s*\\\\$', line):
39 line = re.sub('\s*\\\\$', ';branch=master \\\\', line)
41 …if ("git://" in line or "gitsm://" in line) and "github.com" in line and "protocol=https" not in l…
42 if "protocol=git" in line:
43 line = line.replace('protocol=git', 'protocol=https')
44 elif line.endswith('"\n'):
45 line = line.replace('"\n', ';protocol=https"\n')
46 elif re.search('\s*\\\\$', line):
47 line = re.sub('\s*\\\\$', ';protocol=https \\\\', line)
49 new_file.write(line)