Tester le checkout avant le commit
This commit is contained in:
parent
d509550f69
commit
6345c3d081
|
@ -81,6 +81,7 @@ def git_integration(func):
|
||||||
author = repo.default_signature
|
author = repo.default_signature
|
||||||
committer = author
|
committer = author
|
||||||
|
|
||||||
|
repo.checkout('refs/heads/master')
|
||||||
index = repo.index
|
index = repo.index
|
||||||
for fp in master_add_paths:
|
for fp in master_add_paths:
|
||||||
index.add(fp)
|
index.add(fp)
|
||||||
|
@ -95,6 +96,7 @@ def git_integration(func):
|
||||||
tree,
|
tree,
|
||||||
parents)
|
parents)
|
||||||
|
|
||||||
|
repo.checkout(f'refs/heads/{branch_name}')
|
||||||
for fp in branch_add_paths:
|
for fp in branch_add_paths:
|
||||||
index.add(fp)
|
index.add(fp)
|
||||||
index.write()
|
index.write()
|
||||||
|
|
Loading…
Reference in New Issue