Thread (6 messages) flat view 6 messages, 4 authors, 2016-06-15

Re: [RFC PATCH 0/4] deny push to current branch of non-bare repo

From: Leo Razoumov <hidden>
Date: 2016-06-15 22:45:43

On 12/1/08, Jeff King [off-list ref] wrote:
[..snip..]
 >
Er, what? git-fetch takes a refspec very similar to the ones used by
 git-push. The real reason that (2) is not an acceptable solution is that
 you can't necessarily connect to the source repo (e.g., it is on your
 workstation with no ssh or git server running).

 -Peff
I am sorry, I had to be more accurate in my wording. "git fetch" with
no explicit refspecs fetches everything in. It is quite cumbersome to
form a refspec for git-fetch operation if you are  not logged in into
the "source repo" machine. git-fetch does not have a --dry-run option
to help discover all the branch/tag names on the source side needed
for a meaningful refspec. "git-push -v --dry-run" allows one to
experiment and see what branches/tags exist at the destination and
form refspecs selectively. To the best of my knowledge, git-fetch does
not provide such discovery tools.

--Leo--
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help