Error "null commit diff for sha1" while getting GitLab commit diff
Thank you for your add-on.
Could you help me: there are 3 commits in master but I cannot see through your add-on. Please advice what I'm doing wrong.
Thank you!
Comments (16)
-
reporter -
reporter It is 100% not null :)
-
reporter Should I have anything else except Jira installed on server to use your add-on?
-
repo owner - changed title to Error "null commit diff for sha1"
-
assigned issue to
Hi!
It's an interesting bug. GitLab API returns null as commit diff. I'll try to investigate and fix it as soon as possible.
Which GitLab version do you use?
Should I have anything else except Jira installed on server to use your add-on?
No, all you need is installed add-on.
-
reporter I'm using gitlab.com: GitLab Enterprise Edition 10.2.3-ee a0f9e22 at the moment
-
reporter Possible that following plugin had experienced same issue https://marketplace.atlassian.com/plugins/jiragitintegration/cloud/reviews
-
reporter # curl --header "PRIVATE-TOKEN: **********************" "https://gitlab.com/api/v4/projects/#########/repository/commits/#####################################" {"id":"#####################################","short_id":"####291","title":"PP-1 Importing all previous changes to gitlab","created_at":"2017-12-05T10:54:27.000+02:00","parent_ids":["#####################################"],"message":"PP-1 Importing all previous changes to gitlab\n","author_name":"********","author_email":"********@********.com","authored_date":"2017-12-05T10:54:27.000+02:00","committer_name":"********","committer_email":"********@********.com","committed_date":"2017-12-05T10:54:27.000+02:00","stats":{"additions":274,"deletions":2,"total":276},"status":null,"last_pipeline":null}
https://docs.gitlab.com/ce/api/commits.html#get-the-diff-of-a-commit
worked correctly for that commit
-
repo owner - changed status to resolved
Fixes
#16: Error "null commit diff for sha1" while getting GitLab commit diff→ <<cset 4e7af0eaf84f>>
-
repo owner Thank you for comprehensive information (the curl output is awesome). I'll publish new version in Atlassian Marketplace ASAP.
-
reporter Thank you
-
repo owner - changed title to Error "null commit diff for sha1" while getting GitLab commit diff
-
repo owner You are welcome.
New version already available.
-
reporter - changed status to open
-
repo owner It's another problem and it doesn't look like a Jigit issue.
Look at this question: https://community.atlassian.com/t5/Questions/Unable-to-use-special-characters/qaq-p/73847
There are several tips about configuring MySQL instance:
https://confluence.atlassian.com/jira/setting-up-a-mysql-database-on-linux-for-jira-106004554.html?_ga=2.31526014.1345867013.1512548124-187865564.1387788855 https://confluence.atlassian.com/jira/configuring-mysql-5-1-to-store-non-ascii-characters-106004638.html?_ga=2.55657451.1345867013.1512548124-187865564.1387788855
This hash 9131eefa398531c7dc98776e8a3fe839e544c5b2 is not related to my repository
It's a hash of MySQL revision.
-
reporter Yes Dmitrii, youre right. After baсking up Jira instance using native xml and recreated jira database using using following instruction https://confluence.atlassian.com/adminjiraserver071/connecting-jira-applications-to-mysql-802592179.html.
@dmitry_apanasevich Thanks again - everything is working
-
repo owner - changed status to resolved
It's ok.
It was a pleasure to get all needed information from you without asking for it.
- Log in to comment
Got following in jira log: