Skip to content

Releases: lu0/git-partial-clone

v2.0.0

15 Oct 04:58
@lu0 lu0
Compare
Choose a tag to compare

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

15 Sep 03:32
@lu0 lu0
Compare
Choose a tag to compare

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

13 Sep 00:13
@lu0 lu0
Compare
Choose a tag to compare

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

12 Sep 02:08
@lu0 lu0
Compare
Choose a tag to compare

Bugfix.

Always enable partial extension in order to use the filter by blob option when fetching from origin.

v1.0.0

12 Sep 01:58
@lu0 lu0
Compare
Choose a tag to compare

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.