Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • G gitlabhq1
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 21
    • Issues 21
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • gpt
  • large_projects
  • gitlabhq1
  • Issues
  • #4013

Closed
Open
Created 12 years ago by Administrator@rootOwner
  • New issue

  • Report abuse

  • New issue

  • Report abuse

Master branch not set on Github import

Closed

Master branch not set on Github import

Created by: tooreht

While importing a repo from github, the branch isn't set correctly. The gitlab ci build webhook couldn't be triggered because of the missing branch:

"ref"=>"refs/heads/" instead of "ref"=>"refs/heads/master" (from gitlab_ci/log/production.log)

After setting the master branch again (it's already listed as default) and saving (under project settings - edit) the branch is set properly.

This took me several hours of investigation...

gitlab 5.1 stable, gitlab_ci 2.2 stable

Linked issues
...

    Related merge requests

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: bbodenmiller

      Can you confirm this is still an issue in 5.2?

      By Administrator on 2013-05-28T13:50:48 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: tooreht

      Yes, exactly the same issue on 5.2. (I've just upgraded from 5.1 and checked in the same project as on 5.1)

      By Administrator on 2013-05-28T15:36:25 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: bbodenmiller

      Can you doubly check with the import of a new repo?

      By Administrator on 2013-05-28T15:39:34 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: tooreht

      I've imported a randomly chosen repo from github (https://github.com/joyent/http-parser) and still the same...

      By Administrator on 2013-05-28T17:38:23 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: bbodenmiller

      Please add check results.

      By Administrator on 2013-06-11T17:06:03 (imported from GitLab project)

    • Administrator
      Administrator @root · 12 years ago
      Owner

      Created by: tooreht

      gitlab check result

      user@gitlab:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production
      Checking Environment ...
      
      Git configured for git user? ... yes
      Has python2? ... yes
      python2 is supported version? ... yes
      
      Checking Environment ... Finished
      
      Checking GitLab Shell ...
      
      GitLab Shell version >= 1.4.0 ? ... OK (1.4.0)
      Repo base directory exists? ... yes
      Repo base directory is a symlink? ... no
      Repo base owned by git:git? ... yes
      Repo base access is drwxrws---? ... yes
      post-receive hook up-to-date? ... yes
      post-receive hooks in repos are links: ... 
      Administrator / doublyLinkedList ... ok
      Administrator / dll ... ok
      Administrator / http-parser ... ok
      
      Checking GitLab Shell ... Finished
      
      Checking Sidekiq ...
      
      Running? ... yes
      
      Checking Sidekiq ... Finished
      
      Checking GitLab ...
      
      Database config exists? ... yes
      Database is SQLite ... no
      All migrations up? ... yes
      GitLab config exists? ... yes
      GitLab config outdated? ... no
      Log directory writable? ... yes
      Tmp directory writable? ... yes
      Init script exists? ... yes
      Init script up-to-date? ... yes
      Projects have satellites? ... 
      Administrator / doublyLinkedList ... yes
      Administrator / dll ... yes
      Administrator / http-parser ... yes
      Redis version >= 2.0.0? ... yes
      Your git bin path is "/usr/bin/git"
      Git version >= 1.7.10 ? ... yes (1.8.3)
      
      Checking GitLab ... Finished

      gitlab info

      user@gitlab:/home/git/gitlab$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production
      [sudo] password for user: 
      
      System information
      System:     Ubuntu 12.04
      Current User:   git
      Using RVM:  no
      Ruby Version:   1.9.3p392
      Gem Version:    1.8.23
      Bundler Version:1.3.5
      Rake Version:   10.0.4
      
      GitLab information
      Version:    5.2.0
      Revision:   a997533
      Directory:  /home/git/gitlab
      DB Adapter: mysql2
      URL:        http://192.168.89.101
      HTTP Clone URL: http://192.168.89.101/some-project.git
      SSH Clone URL:  git@192.168.89.101:some-project.git
      Using LDAP: no
      Using Omniauth: no
      
      GitLab Shell
      Version:    1.4.0
      Repositories:   /home/git/repositories/
      Hooks:      /home/git/gitlab-shell/hooks/
      Git:        /usr/bin/git

      GITLAB CI log/production.log

      before clicking project - settings - edit - save

      Started POST "/projects/2/build?token=958e570e41b44f600cc46e3ab9c773" for  at 2013-06-13 16:25:52 +0200
      Processing by ProjectsController#build as HTML
        Parameters: {"before"=>"a5532d582621ebfd27daf791318638d6ce4745a1", "after"=>"2c851b67ddf99b10ca983ec90acbf10ef7bf818a", "ref"=>"refs/heads/", "user_id"=>1, "user_name"=>"Administrator", "repository"=>{"name"=>"dll", "url"=>"git@192.168.89.101:root/dll.git", "description"=>nil, "homepage"=>"http://192.168.89.101/root/dll"}, "commits"=>[{"id"=>"1010cd5a5d0767d6019643f5fdde8eda4d08dbae", "message"=>"updated README.md", "timestamp"=>"2013-01-05T23:10:08+01:00", "url"=>"http://192.168.89.101/root/dll/commit/1010cd5a5d0767d6019643f5fdde8eda4d08dbae", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"d44db69ba5dffd03f5685586a881c1a358161eec", "message"=>"added register functions to handle the user defined data structure\n\nremoved user defined data structure functions (compareData, freeData,\nprintData) as function parameters\nThey are now registered to the list through:\n- dll_registerCompareData\n- dll_registerFreeData\n- dll_registerPrintData\ncleaned up code and documentation\nupdated README.md", "timestamp"=>"2013-01-06T10:10:15+01:00", "url"=>"http://192.168.89.101/root/dll/commit/d44db69ba5dffd03f5685586a881c1a358161eec", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"422147c5de81e436f9d37a5893578d6a07dd323c", "message"=>"removed copyright :-)", "timestamp"=>"2013-01-06T22:57:19+01:00", "url"=>"http://192.168.89.101/root/dll/commit/422147c5de81e436f9d37a5893578d6a07dd323c", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"ec5def925f4e98067692d3a29b35a362fbc15300", "message"=>"cleaned up code, added github link", "timestamp"=>"2013-01-11T20:27:47+01:00", "url"=>"http://192.168.89.101/root/dll/commit/ec5def925f4e98067692d3a29b35a362fbc15300", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"f908ee77795006c5e52a0c5e68b19883d09fe38f", "message"=>"removed unused variable in sample.c", "timestamp"=>"2013-01-12T19:04:12+01:00", "url"=>"http://192.168.89.101/root/dll/commit/f908ee77795006c5e52a0c5e68b19883d09fe38f", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"27fa54644138901f290804c4301a62a4abd8522c", "message"=>"added get and set method to access the list with indexes\nadded new methods to the interactive programm\nimproved fill function (fill low to high and high to low)\nadded new commands to the testCommands file", "timestamp"=>"2013-02-23T00:01:14+01:00", "url"=>"http://192.168.89.101/root/dll/commit/27fa54644138901f290804c4301a62a4abd8522c", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"f8fef00b47a6aec0ee7a6f8ff801ea66b7e1203d", "message"=>"added mode parameter to dll_delete function\nadjusted interactive programm for the new delete function\nadded get and set function to README file", "timestamp"=>"2013-02-24T13:25:15+01:00", "url"=>"http://192.168.89.101/root/dll/commit/f8fef00b47a6aec0ee7a6f8ff801ea66b7e1203d", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"dd5e3b50d97195372b684fc04354ce52bbe3e195", "message"=>"changed dll_delete to dll_searchAndDelete\nadded new dll_delete function\nchanged dll_freeNode to be more generic\nremoved redundant code", "timestamp"=>"2013-03-01T22:11:29+01:00", "url"=>"http://192.168.89.101/root/dll/commit/dd5e3b50d97195372b684fc04354ce52bbe3e195", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"2c851b67ddf99b10ca983ec90acbf10ef7bf818a", "message"=>"removed unnecessary code from function popHead and popTail", "timestamp"=>"2013-03-05T22:06:22+01:00", "url"=>"http://192.168.89.101/root/dll/commit/2c851b67ddf99b10ca983ec90acbf10ef7bf818a", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}], "total_commits_count"=>9, "token"=>"958e570e41b44f600cc46e3ab9c773", "id"=>"2", "project"=>{}}
      WARNING: Can't verify CSRF token authenticity
      Completed 200 OK in 6ms (ActiveRecord: 0.2ms)

      after clicking project - settings - edit - save

      Started POST "/projects/2/build?token=958e570e41b44f600cc46e3ab9c773" for  at 2013-06-13 16:28:01 +0200
      Processing by ProjectsController#build as HTML
        Parameters: {"before"=>"a5532d582621ebfd27daf791318638d6ce4745a1", "after"=>"2c851b67ddf99b10ca983ec90acbf10ef7bf818a", "ref"=>"refs/heads/master", "user_id"=>1, "user_name"=>"Administrator", "repository"=>{"name"=>"dll", "url"=>"git@192.168.89.101:root/dll.git", "description"=>"", "homepage"=>"http://192.168.89.101/root/dll"}, "commits"=>[{"id"=>"1010cd5a5d0767d6019643f5fdde8eda4d08dbae", "message"=>"updated README.md", "timestamp"=>"2013-01-05T23:10:08+01:00", "url"=>"http://192.168.89.101/root/dll/commit/1010cd5a5d0767d6019643f5fdde8eda4d08dbae", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"d44db69ba5dffd03f5685586a881c1a358161eec", "message"=>"added register functions to handle the user defined data structure\n\nremoved user defined data structure functions (compareData, freeData,\nprintData) as function parameters\nThey are now registered to the list through:\n- dll_registerCompareData\n- dll_registerFreeData\n- dll_registerPrintData\ncleaned up code and documentation\nupdated README.md", "timestamp"=>"2013-01-06T10:10:15+01:00", "url"=>"http://192.168.89.101/root/dll/commit/d44db69ba5dffd03f5685586a881c1a358161eec", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"422147c5de81e436f9d37a5893578d6a07dd323c", "message"=>"removed copyright :-)", "timestamp"=>"2013-01-06T22:57:19+01:00", "url"=>"http://192.168.89.101/root/dll/commit/422147c5de81e436f9d37a5893578d6a07dd323c", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"ec5def925f4e98067692d3a29b35a362fbc15300", "message"=>"cleaned up code, added github link", "timestamp"=>"2013-01-11T20:27:47+01:00", "url"=>"http://192.168.89.101/root/dll/commit/ec5def925f4e98067692d3a29b35a362fbc15300", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"f908ee77795006c5e52a0c5e68b19883d09fe38f", "message"=>"removed unused variable in sample.c", "timestamp"=>"2013-01-12T19:04:12+01:00", "url"=>"http://192.168.89.101/root/dll/commit/f908ee77795006c5e52a0c5e68b19883d09fe38f", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"27fa54644138901f290804c4301a62a4abd8522c", "message"=>"added get and set method to access the list with indexes\nadded new methods to the interactive programm\nimproved fill function (fill low to high and high to low)\nadded new commands to the testCommands file", "timestamp"=>"2013-02-23T00:01:14+01:00", "url"=>"http://192.168.89.101/root/dll/commit/27fa54644138901f290804c4301a62a4abd8522c", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"f8fef00b47a6aec0ee7a6f8ff801ea66b7e1203d", "message"=>"added mode parameter to dll_delete function\nadjusted interactive programm for the new delete function\nadded get and set function to README file", "timestamp"=>"2013-02-24T13:25:15+01:00", "url"=>"http://192.168.89.101/root/dll/commit/f8fef00b47a6aec0ee7a6f8ff801ea66b7e1203d", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"dd5e3b50d97195372b684fc04354ce52bbe3e195", "message"=>"changed dll_delete to dll_searchAndDelete\nadded new dll_delete function\nchanged dll_freeNode to be more generic\nremoved redundant code", "timestamp"=>"2013-03-01T22:11:29+01:00", "url"=>"http://192.168.89.101/root/dll/commit/dd5e3b50d97195372b684fc04354ce52bbe3e195", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}, {"id"=>"2c851b67ddf99b10ca983ec90acbf10ef7bf818a", "message"=>"removed unnecessary code from function popHead and popTail", "timestamp"=>"2013-03-05T22:06:22+01:00", "url"=>"http://192.168.89.101/root/dll/commit/2c851b67ddf99b10ca983ec90acbf10ef7bf818a", "author"=>{"name"=>"tooreht", "email"=>"me@example.com"}}], "total_commits_count"=>9, "token"=>"958e570e41b44f600cc46e3ab9c773", "id"=>"2", "project"=>{}}
      WARNING: Can't verify CSRF token authenticity
      Completed 200 OK in 17ms (ActiveRecord: 8.9ms)

      By Administrator on 2013-06-13T14:57:05 (imported from GitLab project)

    • Administrator
      Administrator @root · 11 years ago
      Owner

      Created by: Razer6

      @tooreht Is this still an issue?

      By Administrator on 2013-09-01T18:18:14 (imported from GitLab project)

    • Administrator
      Administrator @root · 11 years ago
      Owner

      Created by: tooreht

      I tested it with GitLab 5.4.0 56a83cd and GitLab CI 3.0.0 5cbfd40, it's still the same issue! The only difference I noticed was an Internal server error on the GitLab project page, before I set the master branch.

      By Administrator on 2013-09-12T07:34:41 (imported from GitLab project)

    • Administrator
      Administrator @root · 11 years ago
      Owner

      Created by: jvanbaarsen

      @tooreht I Can confirm this issue has been fixed in the current release. /cc @Razer6 Issue can be closed

      By Administrator on 2013-12-21T19:36:04 (imported from GitLab project)

    • You're only seeing other activity in the feed. To add a comment, switch to one of the following options.
    Please register or sign in to reply
    0 Assignees
    Assign to
    Milestone
    No milestone
    None
    None
    Time tracking
    Due date
    None
    None
    2
    Labels
    Awaiting developer action/feedback Git/Grit
    Assign labels
    • No matching results
    • Manage project labels
    Confidentiality
    Not confidential

    You are going to turn on confidentiality. Only team members with at least Reporter access will be able to see and leave comments on the issue.

    Lock issue
    Unlocked
    participants
    Reference: