Re: [git-users] Unable to pull from remote branch

2012-10-18 Thread Konstantin Khomoutov
On Wed, Oct 17, 2012 at 12:18:10PM -0700, kramer.newsreader wrote:

 I did a git log and found this merge:
 
 commit 5f052c9b72f5f6306ee3702c66b6de701e36b06f
 Merge: 8100265 f645170
 Author: ...
 Date:   Wed Oct 17 12:50:38 2012 -0400
 
 Merge remote-tracking branch 'gerrit/master' into nov2012
 
 Conflicts:
[...]
 This is very confusing, since none of the conflicts were changed in the 
 local commit.
 
 Second, I was NOT trying to merge gerrit/master into nov2012, but rather 
 remotes/origin/nov2012 (the branch that the current branch was cloned from).
It's a bit strange to think that you told Git to merge A into B but it
merged B into A instead -- such a glaring bug would be ridiculously easy
to spot, so surely it's either due to your own mistake or you're using
some tool around Git which did something funky.

The second thing I which seems suspicious is your I did a git log and
found this merge sentence: conflicts occur only when merging, and
merging always occurs in a work tree or a local repository.  And Git
won't let you commit a tree which has unmerged paths.  I mean, I know of
no way to do a conflicting merge, force it to be committed and then only
discover the fact there were some conflicts from studying the `git log`
output -- this seems impossible.
You might be deluded by the *commit message* though since if a merge results
in conflicts, Git adds that Conflicts: blah blah ... chunk to its
pre-populated commit message despite the facts those conflicts were
(obviously) resolved.  This is a hint to help future debugging as
otherwise there's no information recorded in a commit about which paths
were in conflicted state right after merging happened.

Anyway, someone must have solved these conflicts when merging, so I
still don't understand your This is very confusing ... bit.

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.



[git-users] Unable to pull from remote branch

2012-10-17 Thread kramer.newsreader
Hi guys,

FYI Git n00b here.  

I am having trouble pulling from a remote branch. I'm not really sure 
what's going on.  I didn't have any problem with this yesterday.  I can 
manually log in to the remote server (gerrit).

See the commands below:

$ git branch -a
  master
* nov2012
  remotes/gerrit/master
  remotes/origin/HEAD - origin/master
  remotes/origin/master
  remotes/origin/nov2012
  remotes/origin/test
  remotes/origin/test-branch
$ git pull --rebase remotes/origin/nov2012
fatal: 'remotes/origin/nov2012' does not appear to be a git repository
fatal: The remote end hung up unexpectedly


Thanks much for the help guys!!!

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/git-users/-/EmcdHzCcrPAJ.
To post to this group, send email to git-users@googlegroups.com.
To unsubscribe from this group, send email to 
git-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/git-users?hl=en.