forked from lix-project/lix
tests/nixos/fetch-git: Memoize -> save
Memoization is for thunk-like behavior whereas this is executed eagerly.
This commit is contained in:
parent
fd41979d78
commit
94eba0ebbb
|
@ -8,7 +8,7 @@
|
||||||
&& {repo.git} commit -m 'commit1'
|
&& {repo.git} commit -m 'commit1'
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# memoize the revision
|
# save the revision
|
||||||
rev1 = client.succeed(f"""
|
rev1 = client.succeed(f"""
|
||||||
{repo.git} rev-parse HEAD
|
{repo.git} rev-parse HEAD
|
||||||
""").strip()
|
""").strip()
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
&& {repo.git} commit -m 'commit1'
|
&& {repo.git} commit -m 'commit1'
|
||||||
""")
|
""")
|
||||||
|
|
||||||
# memoize the revision
|
# save the revision
|
||||||
rev1 = client.succeed(f"""
|
rev1 = client.succeed(f"""
|
||||||
{repo.git} rev-parse HEAD
|
{repo.git} rev-parse HEAD
|
||||||
""").strip()
|
""").strip()
|
||||||
|
|
Loading…
Reference in a new issue