Skip to content

Commit

Permalink
Force git to clobber tags in the git cache
Browse files Browse the repository at this point in the history
Release 1.0.12

fixes #43
  • Loading branch information
arcivanov committed Dec 29, 2023
1 parent 33a60fc commit dafae30
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use_plugin("filter_resources")

name = "kubernator"
version = "1.0.11"
version = "1.0.12"

summary = "Kubernator is the a pluggable framework for K8S provisioning"
authors = [Author("Express Systems USA, Inc.", "")]
Expand Down
2 changes: 1 addition & 1 deletion src/main/python/kubernator/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -740,7 +740,7 @@ def init(self, logger, context):
self.local_dir)
run(["git", "config", "remote.origin.fetch", f"+refs/heads/{ref}:refs/remotes/origin/{ref}"],
stdout_logger, stderr_logger, cwd=git_cache).wait()
run(["git", "fetch", "-pPt"], stdout_logger, stderr_logger, cwd=git_cache).wait()
run(["git", "fetch", "-pPt", "--force"], stdout_logger, stderr_logger, cwd=git_cache).wait()
run(["git", "checkout", ref], stdout_logger, stderr_logger, cwd=git_cache).wait()
run(["git", "clean", "-f"], stdout_logger, stderr_logger, cwd=git_cache).wait()
run(["git", "reset", "--hard", ref, "--"], stdout_logger, stderr_logger, cwd=git_cache).wait()
Expand Down

0 comments on commit dafae30

Please sign in to comment.