You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently batou.lib.git.Clone() does a Clone also in case of the git status is detecting some changed code inside the checkout target folder:
defhas_changes(self):
withself.chdir(self.target):
stdout, stderr=self.cmd("git status --porcelain")
returnbool(stdout.strip())
and from verify()
ifself.has_changes():
output.annotate(
"Git clone at {} is dirty, going to lose changes.".format(
self.target
),
red=True,
)
raiseUpdateNeeded()
I think we might should add an flag to prevent this and rather failing the deployment.
Some applications like Wordpress are storing content created/manipulated by them inside the source folders all around the codebasis. It's not always 100% determinable where they will be. When proceeding with an unclean git status data/changes might get lost.
The text was updated successfully, but these errors were encountered:
Currently
batou.lib.git.Clone()
does a Clone also in case of the git status is detecting some changed code inside the checkout target folder:and from
verify()
I think we might should add an flag to prevent this and rather failing the deployment.
Some applications like Wordpress are storing content created/manipulated by them inside the source folders all around the codebasis. It's not always 100% determinable where they will be. When proceeding with an unclean git status data/changes might get lost.
The text was updated successfully, but these errors were encountered: