-
Notifications
You must be signed in to change notification settings - Fork 57
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
fetch
followed by pull
is inefficient
#28
Comments
Additional issue is that, if the remote requires typing a password, the user will be asked twice for each branch. |
I'm also impacted with this problem Here stock-logistics-workflow, you can see than after switched to branch 12.0, aggregator fetching all branches Some repo may have some hundred of branches (in my case Odoo clone). Even like below if branch |
I noticed while tinkering with
gitaggregate
1.6.0
(git
version2.7.4
) that it was issuing afetch
followed bypull
. As we all know,pull
is a shorthand for afetch
followed by amerge
. We could think that the secondfetch
is not so harmful as it won't download anything... but that wrong:pull
is not garanteed to give the same resut that the first fetch (the target might have changed in between), and this might have some consequence in the code.--depth 1
and when the code didn't change, there are still some computation and network exchanges that could be avoided.Full example:
would output
Notice the 2 full outputs with obvious computation done twice.
I noted that the second output seems smaller (and quicker?) if
depth: 1
is indefaults
. And nofetch_all
is activated.I have a PR solving this issue coming soon.
The text was updated successfully, but these errors were encountered: