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

batou.git.Clone: Not pruning old branches #387

Open
frlan opened this issue Sep 4, 2023 · 0 comments
Open

batou.git.Clone: Not pruning old branches #387

frlan opened this issue Sep 4, 2023 · 0 comments

Comments

@frlan
Copy link
Member

frlan commented Sep 4, 2023

We are using basic clone

        self += batou.lib.git.Clone(
            <some_clone_url>,
            revision=<some_revision>
            target=<some_target>,
        )

for some time. But it appers that the checkout folder is not getting pruned by old, obsolete branches

$ git branch -a | grep "remotes/" -c
1060

after running git fetch --prune:

git branch -a | grep "remotes/" -c
39

In very active projects this might lead to bigger unneeded disc consumption (some git gc might be missing, too) and increased deployment times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant