Skip to main content

git-remote-run

This package defines a git-remote-run command, which allows running custom commands on a git remote.

This can be used, for example, to set up the actual remote repository, as in:

$ git remote add remote-repo user@server:path/to/repo
$ git remote-run remote-repo -c '
    mkdir -p $REPO_DIR
    git init --bare $REPO_DIR
    echo echo it works! > $REPO_DIR/hooks/update
    chmod +x $REPO_DIR/hooks/update'
Initialized empty Git repository in /home/user/path/to/repo/
$ git push remote-repo master
...
remote: it works!

See git remote-run -h for more options.

How does it work?

git-remote-run doesn’t attempt any parsing of the git remote URL on its own, nor does it make assumptions about the transport used. Instead, it relies on git’s built-in ability to run commands on the remote side.

Git uses this ability in its git archive –remote=… command, to create an archive of a remote repository. We abuse this ability a little bit by sending a custom script to run as the –exec parameter.

Author

Radek Czajka

License

This project is licensed under the MIT License – see the LICENSE file for details.

Metadata

Release files for git-remote-run 1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for git-remote-run 1.2
File Size Uploaded Provenance Actions
git-remote-run-1.2.tar.gz 6.5 kB Without provenance Details for git-remote-run-1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for git-remote-run 1.2
File Interpreter ABI Platform Actions
git_remote_run-1.2-py3-none-any.whl Python 3 none any Details for git_remote_run-1.2-py3-none-any.whl

Total release size: 13.6 kB

Release files / git-remote-run-1.2.tar.gz

Download URL git-remote-run-1.2.tar.gz
Size 6.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef8c9f231a9c4fe96d843192002db28e85caa42ef402da92c6405a1329ef73cc
BLAKE2b-256 checksum
How to use checksums
9b8a54888a8ab466b593bf3a24921a151cb0378ac009435d8c704f1d4886f5dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.5

Release files / git_remote_run-1.2-py3-none-any.whl

Download URL git_remote_run-1.2-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
59ac1537549524893a3cdbcfbfd6bc9be7e933fc11d51f9289b24ba1dd274492
BLAKE2b-256 checksum
How to use checksums
7f38724dbf0dc9241a64c14e06a0f96a504e4fea66ac08fc24d7ca7db9561510
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.6.5

Security for git-remote-run 1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page