mirror of
https://github.com/github/codeql.git
synced 2026-05-05 13:45:19 +02:00
Codegen: prepend .gitattributes entries with /
This commit is contained in:
@@ -46,7 +46,7 @@ def write_registry(file, *files_and_hashes):
|
||||
def assert_registry(file, *files_and_hashes):
|
||||
assert_file(file, create_registry(files_and_hashes))
|
||||
files = [file.name, ".gitattributes"] + [f for f, _, _ in files_and_hashes]
|
||||
assert_file(file.parent / ".gitattributes", "\n".join(f"{f} linguist-generated" for f in files) + "\n")
|
||||
assert_file(file.parent / ".gitattributes", "\n".join(f"/{f} linguist-generated" for f in files) + "\n")
|
||||
|
||||
|
||||
def hash(text):
|
||||
|
||||
Reference in New Issue
Block a user