Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jira and git: How to get all branches reflected?

Using a development infrastructure of git, Fisheye+Crucible, and Jira 4.2.

Commits to Fisheye-registered repositories are reflected in Jira Projects and Tickets since we configured the mappings in Jira; however, only commits on the master branch seem to be reflected. In Crucible, other branches can be chosen to search for commits for reviews.

How can I make all those branches visible in Jira?

like image 608
Bernd Haug Avatar asked Mar 01 '12 14:03

Bernd Haug


People also ask

How do I fetch all remote branches?

To view your remote branches, simply pass the -r flag to the git branch command. You can inspect remote branches with the usual git checkout and git log commands. If you approve the changes a remote branch contains, you can merge it into a local branch with a normal git merge .

Does git pull pull all branches?

git pull fetches updates for all local branches, which track remote branches, and then merges the current branch.

Which command can be used to identify all the branches that have been merged into master?

In order to verify which branches are merged into master you should use these commands: git branch <flag[-r/-a/none]> --merged master list of all branches merged into master.


1 Answers

Seems like it is a limitation of Git-Fisheye ( https://confluence.atlassian.com/display/FISHEYE/Git ):

When FishEye indexes a Git repository, it indexes by the available branches. As it processes the commits on a branch, FishEye will assign the commit to the branch it first sees the commit on. Commits are only indexed once so if a commit belongs to multiple branches, the commit will not indexed against subsequent branches.

You may consider using - Jira Git plugin https://marketplace.atlassian.com/plugins/com.xiplink.jira.git.jira_git_plugin

like image 131
Daria Trainor Avatar answered Oct 19 '22 11:10

Daria Trainor