mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* bug report: git push fails in worktree
@ 2022-12-06  1:03 tionis
  2022-12-06  1:42 ` Junio C Hamano
  0 siblings, 1 reply; 3+ messages in thread
From: tionis @ 2022-12-06  1:03 UTC (permalink / raw)
  To: git

Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)
Setup two branches.  
Check the main one out in a repo.  
Checkout the second one using a worktree with
git worktree add ~/some/path branch-name
Add commits in ~/some/path
git status shows:
On branch dev
Your branch is ahead of 'dev/main' by 1 commit.
  (use "git push" to publish your local commits)
Execute git push

What did you expect to happen? (Expected behavior)
expected the one commit to be pushed

What happened instead? (Actual behavior)
the command only returns 
Everything up-to-date
and nothing is pushed

What's different between what you expected and what actually happened?
git should detect the commits to push correctly

Anything else you want to add:
this was mentionend before on stack overflow:

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.38.1
cpu: x86_64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
uname: Linux 5.15.80-1-MANJARO #1 SMP PREEMPT Sat Nov 26 13:41:30 UTC 2022 x86_64
compiler info: gnuc: 12.2
libc info: glibc: 2.36
$SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-06 11:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-06  1:03 bug report: git push fails in worktree tionis
2022-12-06  1:42 ` Junio C Hamano
2022-12-06 11:23   ` tionis

Code repositories for project(s) associated with this public inbox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).