Skip to content
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

Updateing redmine git repository / No redmine git update on branche #49

Open
toples opened this issue Aug 21, 2019 · 0 comments
Open

Updateing redmine git repository / No redmine git update on branche #49

toples opened this issue Aug 21, 2019 · 0 comments

Comments

@toples
Copy link

toples commented Aug 21, 2019

Hi guys,
first I have to say that you have done an amazing job!

My configuration

Redmine version         4.0.3.stable
redmine_gitlab_hook	4.0.0
GitLab 			12.1.1 

I had to change the following line in
plugins/redmine_gitlab_hook/app/controllers/gitlab_hook_controller.rb
in order to sync the changes of my master branch from the gitlab repository to redmine ( I use ssh for pulling the changes ):

if Setting.plugin_redmine_gitlab_hook['all_branches'] == 'yes'
      # fetch --all didnt do anything :-(
      # command = git_command(prefix, "fetch --all#{prune}", repository)
      command = git_command(prefix, "pull", repository)

      logger.debug { "a) Command: #{command}, #{prefix}, #{repository}" }
      exec(command)

Now when I push changes from my local master branch to remote master branch ( even the refs # @ works ) I can see the changes in redmine (and they are the same as the ones in gitlab) So far me happy :-)

Now if I create an addition branch for ex. "bugs" and i push it from my local to the remote, I can see the branch in gitlab, but in redmineI only see the master branch ( the log file of redmine doenst show any activities, when I push on my second branch "bugs" ).

This is what I see in redmine terminal when I do an git branch -a

redmine@dev:~/redmine/git/p1$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/bugs
  remotes/origin/feature
  remotes/origin/master

and yet redmine repository browser, shows me only the master.

Could you give me some input here, what should I do in this case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant