Releases: lu0/git-partial-clone
Releases · lu0/git-partial-clone
v2.0.0
Features
- Dockerfile and available image:
- Useful for creating stable and rolling releases with Docker.
- Stable version finally released.
- Clone by using the TAG_NAME option:
- If provided, the release is treated as stable.
- If not provided, the release is treated as rolling.
- Overrides the BRANCH option.
Changes
- GIT_USER:
- No longer required, providing the path to the token should suffice.
v1.1.1
Bugfix
- Command and completion rules weren't available immediately after installation (the shell wasn't updating correctly).
- The uninstall script attempted to remove important files, this is no longer the case after handling root and rootless environments and running the remove commands interactively.
v1.1.0
Features
- Clone by using CLI options:
- Integrate configuration variables into the command line options.
- Create autocompletion rules for the cli options.
- Clone assuming env variables:
- Called by executing the script with no arguments.
- Attempt to clone by assuming existence of the configuration variables in the environment.
Changes
- Host:
- Assume Github as the default host.
v1.0.1
v1.0.0
Script/command to clone a subdirectory of a git repository given a configuration file.
Configuration variables:
GIT_HOST
(tested):github
if the repository is hosted on Github.gitlab
if the repository is hosted on Gitlab.
REPO_OWNER
:- Username of the owner/author of the repository.
REPO_NAME
:- Name of the repository to be cloned.
REMOTE_PARTIAL_DIR
:- Subdirectory of the repository you want to clone.
TOKEN_PATH
:- Path to the file containing the access token.
GIT_USER
:- Username with access to the repository.
BRANCH
:- The branch to be fetched.
COMMIT_DEPTH
:- Number of commits you want to fetch (useful for deployment purposes).
PARENT_DIR
:- Path to the target parent directory.