Add support for GIT_FETCH_FLAGS
What does this MR do?
Gives more control over git fetch
operation to the user.
Why was this MR needed?
While investigating some GitLab.com infrastructure problems we've found out that it would be good to see the git fetch --progress
output, since normally Git doesn't provide it in a non-terminal environment. The output that we've looked for is:
remote: Enumerating objects: 1311, done.
remote: Counting objects: 100% (462/462), done.
remote: Compressing objects: 100% (145/145), done.
remote: Total 201 (delta 147), reused 93 (delta 48)
Receiving objects: 100% (201/201), 30.42 KiB | 6.08 MiB/s, done.
Resolving deltas: 100% (147/147), completed with 104 local objects.
This MR implements a way to pass some additional flags to the git fetch
command in a way how we do it now with git clean
and GIT_CLEAN_FLAGS
.
Are there points in the code the reviewer needs to double check?
Does this MR meet the acceptance criteria?
-
Documentation created/updated -
Added tests for this feature/bug -
In case of conflicts with master
- branch was rebased
What are the relevant issue numbers?
Edited by Tomasz Maczukin