tags:

views:

282

answers:

2

I have a bare git-svn repository and did a 'git svn fetch' on it.

Running 'git log' doesn't show the updates. I'm sure there are updates as it displayed the files changed after 'git svn fetch' and 'git svn log' shows them also.

Please note that I purposely made this a bare repo so 'git rebase' will not work. What is the appropriate command to get the fetched changes?

+1  A: 

I found the answer,

git symbolic-ref refs/heads/master refs/remotes/git-svn

Thanks to Steven Walter's comments in http://gsocblog.jsharpe.net/archives/12

vjangus
+1  A: 

Try git log git-svn - I don't have a bare repo, but I've just run git svn fetch, and standard git log gives me the current (rebased) log, but with the git-svn arg (which is the other branch besides master that is identified by git branch -a in my case) I get the log up to the fetched revision

Cebjyre
Yup you're right. 'git log' looks for the master ref which is why it worked on the 'git symbolic-ref refs/heads/master refs/remotes/git-svn'. Thanks.
vjangus

related questions