Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clone single branch with depth of 1 #836

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 18, 2023

  1. clone single branch with depth of 1

    cloning only the default branch and with a depth of 1 speeds up the clone time greatly
    
    ```sh
    I0818 19:01:24.786890   27900 git.go:79] Going to run git clone --depth=1 --single-branch -v [email protected]:test/test.git /Users/dbrian/.krew/index/test
    Cloning into '/Users/dbrian/.krew/index/test'...
    I0818 19:01:25.342370   27900 fetch_tag.go:47] Parsing response from GitHub
    ```
    
    ```sh
    I0818 19:00:39.064036   27722 git.go:79] Going to run git clone -v [email protected]:test/test.git /Users/dbrian/.krew/index/test
    Cloning into '/Users/dbrian/.krew/index/test'...
    I0818 19:00:48.527775   27722 root.go:180] Upgrade check was skipped or has not finished
    ```
    
    Signed-off-by: Brian Davis <[email protected]>
    slimm609 committed Aug 18, 2023
    Configuration menu
    Copy the full SHA
    bbf17d4 View commit details
    Browse the repository at this point in the history