When using "repo init" how to get master branch of repo

2,515 views
Skip to first unread message

Wink Saville

unread,
Jun 10, 2015, 8:44:58 PM6/10/15
to repo-d...@googlegroups.com
Rather than getting the stable branch of ".repo/repo" I'd like to get the master branch. Looking at "repo help init" I see there are --repo-branch and --repo-url options but I couldn't get the to work, I could only get the stable branch. How can I checkout the master branch?

-- Wink

David Pursehouse

unread,
Jun 10, 2015, 11:49:30 PM6/10/15
to Wink Saville, repo-discuss

It should work with the --repo-branch option.  You might also need to add --no-repo-verify.


On Thu, 11 Jun 2015 09:45 Wink Saville <wi...@saville.com> wrote:
Rather than getting the stable branch of ".repo/repo" I'd like to get the master branch. Looking at "repo help init" I see there are --repo-branch and --repo-url options but I couldn't get the to work, I could only get the stable branch. How can I checkout the master branch?

-- Wink

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wink Saville

unread,
Jun 11, 2015, 12:27:42 PM6/11/15
to repo-d...@googlegroups.com
Using --no-repo-verify almost worked, it successfully got "origin/master":

$ repo init --repo-branch=master --no-repo-verify -u https://github.com/winksaville/sel4-helloworld-test-linkfiles-manifest.git
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0curl: (22) The requested URL returned error: 404 Not Found
Server does not provide clone.bundle; ignoring.
remote: Counting objects: 32, done.        
remote: Total 32 (delta 0), reused 0 (delta 0), pack-reused 32        
 * [new branch]      master     -> origin/master

Your identity is: Wink Saville <wi...@saville.com>
If you want to change this, please re-run 'repo init' with --config-name

But it retrieved sha1: c116f94261cf0e6d33b3910b68d08d3b0e4bccdd instead of
sha1: 185307d1dd1e63a8cf139c55f26895a6b378d43b I was expecting. if I
"cd .repo/repo" and do a "git pull -u origin master" then I do get
sha1: 185307d1dd1e63a8cf139c55f26895a6b378d43b.

Suggestions?
Reply all
Reply to author
Forward
0 new messages