MCPcopy Index your code
hub / github.com/saltstack/salt / _push

Method _push

tests/support/gitfs.py:390–404  ·  view source on GitHub ↗
(branch, message)

Source from the content-addressed store, hash-verified

388 self.run_function("git.clone", [self.admin_repo], url=self.bare_repo, user=user)
389
390 def _push(branch, message):
391 self.run_function("git.add", [self.admin_repo, "."], user=user)
392 self.run_function(
393 "git.commit",
394 [self.admin_repo, message],
395 user=user,
396 git_opts=self.git_opts,
397 )
398 self.run_function(
399 "git.push",
400 [self.admin_repo],
401 remote="origin",
402 ref=branch,
403 user=user,
404 )
405
406 with salt.utils.files.fopen(
407 os.path.join(self.admin_repo, "top.sls"), "w"

Callers

nothing calls this directly

Calls 1

run_functionMethod · 0.45

Tested by

no test coverage detected