• Torne (Richard Coles)'s avatar
    Don't fetch tags when using --no-history. · 08ca04b2
    Torne (Richard Coles) authored
    After the initial gclient sync, "fetch --no-history" was adding a
    fetchspec to the config for the main repository that causes all tags to
    be downloaded in future. This means that after fetching a repository
    with no history, the very next git pull (or other remote update
    operation) will download all the tags, including all the history
    referred to by those tags, leaving you with an almost-complete checkout
    of the top-level repository that takes up much more space.
    
    Fix this by skipping the "git config" command that requests the tags
    when using no-history.
    
    Change-Id: Ia31baa6a90df014ebc1e8c2ed6e05de3ad27d415
    Reviewed-on: https://chromium-review.googlesource.com/909653Reviewed-by: 's avatarAaron Gable <agable@chromium.org>
    Commit-Queue: Richard Coles <torne@chromium.org>
    08ca04b2
fetch.py 9.39 KB