Skip to content

Avoid the redundant fetch after an initial Git clone #43

Closed

Description

@LunaStev

Problem

Initial resolution calls git clone and then immediately runs git fetch origin --tags --prune before resolving the selector. The clone has already transferred the advertised refs, so a normal first fetch performs two network operations for each new dependency.

Acceptance criteria

  • Resolve branch, tag, rev, and default-branch selectors from the clone when sufficient.
  • Fetch only when the requested object or required remote metadata is absent.
  • Keep annotated tags and SHA-256 repositories supported.
  • Preserve status output so each actual network operation is visible once.
  • Add a local Git integration test that counts fetch-side ref updates or transport invocations.
  • Do not weaken explicit vex update behavior.

Activity

  1. added
    enhancement
    performance
    dependencies
    on Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesenhancementperformance

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions