git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Sequent repos ,, pull without checkout

From
WGWolfgang Graf <wg@wogra.net>
Date
Sep 3, 2020, 06:38 UTC
Message-ID
<20200903083859.Horde.d_JTRsvdjC38RffOwMv54lJ@webmail.your-server.de>
What did you do before the bug happened? (Steps to reproduce your issue)

We have three repos bt,bt2,bt3 where bt2 is a clone of bt and bt3 is a clone of bt2. All remote destinations remain unchanged (pointing to the repo before).

Step 1: I'm creating a branch "b11" in bt, committing it. Step 2: Going to bt2, doing git pull --all. Step 3: Going to bt3, doing git pull --all.

What did you expect to happen? (Expected behavior)
The branch b11 is usable in bt3 also
What happened instead? (Actual behavior)

Either doing Step 2a: If I'm doing a git checkout b11 in bt2 before Step 3 The branch b11 is also usable in bt3 This works

or doing Step 2b: If I'm doing a fetch by name 'fetch origin master:master bt11:bt11" This works

But if I'm only pushing through from bt to bt3 without doing checkout in bt2 the b11 is no more usable in bt3 when omitting step 2a or2b

What's different between what you expected and what actually happened?

The pull output did show me that there changes are tracked. But only if a checkout in bt2 in the middle was made before the content of the changes made within the origin change are really coming through to bt3

Anything else you want to add:

This might not be necessarily a bug. If this behavior is intended please close it. It would be instead of that be nice if some guideline would exist to deal with changes wired through a cascade of repositories in different branches. As seen on the internet many people are asking for a solution for that.

Please review the rest of the bug report below. You can delete any lines you don't wish to share.

[System Info] git version: git version 2.28.0.windows.1 cpu: x86_64 built from commit: 77982caf269b7ee713a76da2bcf260c34d3bf7a7 sizeof-long: 4 sizeof-size_t: 8 shell-path: /bin/sh uname: Windows 10.0 18362 compiler info: gnuc: 10.2 libc info: no libc information available $SHELL (typically, interactive shell): C:\Program Files\Git\usr\bin\bash.exe

[Enabled Hooks] -

Kind regards
Wolfgang
wg@wogra.net
-- 
**
I prefer signed and encrypted email messages.
If you are able to recieve encryted messages please let me know.
**
Next: Raymond E. Pasco
Message 1 of 2 in “Sequent repos ,, pull without checkout”
  1. Wolfgang GrafSep 3, 2020
  2. Raymond E. PascoSep 3, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.