mainSavannah Administration - Support: sr #110430, Anonymous clone of RCS gets just...

 
 

sr #110430: Anonymous clone of RCS gets just the master branch

Submitter:  Horst H. von Brand <vonbrand>
Submitted:  Sat 23 Jan 2021 05:13:44 PM UTC
   
 
Category:  Source code repositories - anonymous access Priority:  5 - Normal
Severity:  3 - Normal Status:  Works For Me
Privacy:  Public Assigned to:  None
Operating System:  None Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 27 Jan 2021 04:17:51 AM UTC, comment #2: 

There have been some differences over the lifetime of git about branches are handled at clone time.  Currently the "default" branch is the only checked out branch.  But the other remote branches are fetched.  You can see this by listing all branches.


/tmp/rcs$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/archive
  remotes/origin/master
  remotes/origin/next
  remotes/origin/p


And then one only need to select a branch they want to switch to if they don't want the default branch.  Let's say that you would like to look at the "next" branch.  Then simply check it out.


/tmp/rcs$ git checkout next
Branch 'next' set up to track remote branch 'next' from 'origin'.
Switched to a new branch 'next'

/tmp/rcs$ git status
On branch next
Your branch is up to date with 'origin/next'.

nothing to commit, working tree clean


Since the local directly working copy sandbox was clean with no changes this switched the checked out clone from the default branch that was set during the initial clone over to the "next" branch.

These defaults can also be affected by local configurations in your global git ~/.gitconfig configuration file too.

Bob Proulx <rwp>
Site Administrator
Sun 24 Jan 2021 08:48:30 AM UTC, comment #1: 

This is what it looks like for me:


$ git clone git://git.savannah.gnu.org/rcs.git&&cd rcs&&git branch --remote
Cloning into rcs...
remote: Counting objects: 11649, done.
remote: Compressing objects: 100% (1837/1837), done.
remote: Total 11649 (delta 9690), reused 11649 (delta 9690)
Receiving objects: 100% (11649/11649), 3.24 MiB | 562.00 KiB/s, done.
Resolving deltas: 100% (9690/9690), done.
Checking connectivity... done.
  origin/HEAD -> origin/master
  origin/archive
  origin/master
  origin/next
  origin/p


Is it different for you?

Ineiev <ineiev>
Site Administrator
Sat 23 Jan 2021 05:13:44 PM UTC, original submission:  

I cloned git://git.savannah.gnu.org/rcs.git, and got just the master branch. The project page https://git.savannah.gnu.org/cgit/rcs.git/?h=p shows several branches, none accessible via git (I'd like to look at some of the changes in them).

Horst H. von Brand <vonbrand>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rwp (Posted a comment)
  • -email is unavailable- added by ineiev (Posted a comment)
  • -email is unavailable- added by vonbrand (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-02-21 ineiev StatusNone Works For Me
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code