diff options
author | jaseg <git@jaseg.de> | 2021-08-16 14:28:04 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2021-08-16 14:28:04 +0200 |
commit | 3dfca328ee4747f6258ef2d1e3b9efb69fcddfab (patch) | |
tree | d1d2bd11879bbd62e916b1314c606dfac70777c4 | |
parent | f61c032d2361e8a507a3e267ef81777fe6fa0fc8 (diff) | |
download | blog-3dfca328ee4747f6258ef2d1e3b9efb69fcddfab.tar.gz blog-3dfca328ee4747f6258ef2d1e3b9efb69fcddfab.tar.bz2 blog-3dfca328ee4747f6258ef2d1e3b9efb69fcddfab.zip |
deploy.py: use absolute URL instead of remote name for deployment
-rw-r--r-- | deploy.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -21,6 +21,6 @@ if __name__ == '__main__': commit = subprocess.run(['git', 'commit-tree', '-p', 'HEAD', '-p', 'refs/heads/deploy', '-m', 'deploy.py auto-commit', tree], cwd=tmpdir, check=True, capture_output=True).stdout.strip() subprocess.run(['git', 'update-ref', '-m', f'deploy.sh update deploy branch to {commit}', 'refs/heads/deploy', commit], cwd=tmpdir, check=True) - subprocess.run(['git', 'push', 'origin', 'deploy'], cwd=tmpdir, check=True) + subprocess.run(['git', 'push', 'git.jaseg.de:blog.git', 'deploy'], cwd=tmpdir, check=True) finally: subprocess.run(['git', 'worktree', 'remove', '-f', tmpdir], check=True) |