All of lore.kernel.org
 help / color / mirror / Atom feed
From: Masahiro YAMADA <yamada.m@jp.panasonic.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] U-Boot panasonic repo
Date: Sun, 28 Sep 2014 00:02:28 +0900	[thread overview]
Message-ID: <CAMhH57Tp302tcPwTFPu5stNzcBH491t8tDLEESb-7XhMzuBU2w@mail.gmail.com> (raw)
In-Reply-To: <20140927130013.C2C3F382279@gemini.denx.de>

Hi Wolfgang,

2014-09-27 22:00 GMT+09:00 Wolfgang Denk <wd@denx.de>:
> Dear Masahiro,
>
> In message <CAMhH57Rx8VLZ9fL6OXeyJMWwnSKTg36dTERENm0YVQcLPRuqVg@mail.gmail.com> you wrote:
>>
>> I am trying to push to the newly-created u-boot-uniphier repo
>> but I am in trouble.
>>
>> masahiro at oscar:~/workspace/u-boot-uniphier$ git push ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git
> ...
>> remote: error: By default, updating the current branch in a non-bare repository
>> remote: error: is denied, because it will make the index and work tree
>> inconsistent
>
> I recommend to always explicitly tell which branch you are trying to
> push where.
>
> For example, if your local branch which you are preparing for a pull
> request is "for-upstream", then your push command would look like
> this:
>
> git push ssh://gu-uniphier at git.denx.de/u-boot-uniphier for-upstream:master
>



I am afraid your recommendation won't solve the problem I am having now.

I can create a new branch on the remote u-boot-uniphier.git
but I cannot update the master branch.


$ git --version
git version 1.9.1
masahiro at oscar:~/workspace/u-boot-uniphier$ git branch
* master
masahiro at oscar:~/workspace/u-boot-uniphier$ git describe
v2014.10-rc2-274-gf9860cf
masahiro at oscar:~/workspace/u-boot-uniphier$ git push
ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git master:master
X11 forwarding request failed on channel 0
Total 0 (delta 0), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree
inconsistent
remote: error: with what you pushed, and will require 'git reset
--hard' to match
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git
 ! [remote rejected] master -> master (branch is currently checked out)
error: failed to push some refs to
'ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git'
masahiro at oscar:~/workspace/u-boot-uniphier$ git checkout -b for-upstream
Switched to a new branch 'for-upstream'
masahiro at oscar:~/workspace/u-boot-uniphier$ git branch
* for-upstream
  master
masahiro at oscar:~/workspace/u-boot-uniphier$ git push
ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git for-upstream:master
X11 forwarding request failed on channel 0
Total 0 (delta 0), reused 0 (delta 0)
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree
inconsistent
remote: error: with what you pushed, and will require 'git reset
--hard' to match
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
remote: error:
remote: error: To squelch this message and still keep the default behaviour, set
remote: error: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git
 ! [remote rejected] for-upstream -> master (branch is currently checked out)
error: failed to push some refs to
'ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git'
masahiro at oscar:~/workspace/u-boot-uniphier$ git push
ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git
for-upstream:for-upstream
X11 forwarding request failed on channel 0
Total 0 (delta 0), reused 0 (delta 0)
To ssh://gu-uniphier at git.denx.de/u-boot-uniphier.git
 * [new branch]      for-upstream -> for-upstream



The error message is saying that the remote u-boot-uniphier is a
non-bare repository
and the 'master' branch is already checked out (commit
9170818a4e004af7893fa0113f6e5b4afafded55).
That is why I cannot update the master branch, I think.


When I create a repo just for pushing to and fetching from, I use
"--bare" option.

Why not for the u-boot-uniphier.git on git.denx.de ?

Is anyone doing his work on that repo?



-- 
Best Regards
Masahiro Yamada

  reply	other threads:[~2014-09-27 15:02 UTC|newest]

Thread overview: 68+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-10 23:33 [U-Boot] u-boot-socfpga repository Marek Vasut
2014-09-11  3:09 ` Masahiro Yamada
2014-09-11  4:56   ` Michal Simek
2014-09-11  5:18     ` Masahiro Yamada
2014-09-18  7:27       ` [U-Boot] U-Boot panasonic repo Marek Vasut
2014-09-18  7:58         ` Michal Simek
2014-09-18  8:02           ` Marek Vasut
2014-09-18  8:24             ` Michal Simek
2014-09-18 10:13               ` Masahiro Yamada
2014-09-18 11:44                 ` Albert ARIBAUD
2014-09-18 13:32                   ` Masahiro YAMADA
2014-09-18  8:32         ` Wolfgang Denk
2014-09-18  8:43           ` Masahiro Yamada
2014-09-18  9:03             ` Wolfgang Denk
     [not found]               ` <CAMhH57QtP7H8rx8cq--s8HqeJFq+C4xmGhh1V2RB6CvDqOiiTg@mail.gmail.com>
2014-09-27  9:01                 ` Masahiro YAMADA
2014-09-27 13:00                   ` Wolfgang Denk
2014-09-27 15:02                     ` Masahiro YAMADA [this message]
2014-09-27 15:57                       ` Wolfgang Denk
2014-09-28  5:20                         ` Masahiro YAMADA
2014-09-11  7:46     ` [U-Boot] u-boot-socfpga repository Wolfgang Denk
2014-09-11  7:55       ` Pavel Machek
2014-09-11 15:39         ` Marek Vasut
2014-09-11 16:01         ` Dinh Nguyen
2014-09-11 17:21           ` Marek Vasut
2014-09-16  9:56           ` Pavel Machek
2014-09-17 11:54             ` Chin Liang See
2014-09-19  9:54               ` Chin Liang See
2014-09-23 12:54                 ` Tom Rini
2014-09-23 13:43                   ` Wolfgang Denk
2014-09-23 13:46                     ` Tom Rini
2014-09-23 14:30                       ` Wolfgang Denk
2014-09-11 15:45       ` Marek Vasut
2014-09-11 16:14       ` Dinh Nguyen
2014-09-11 16:51         ` Marek Vasut
2014-09-11 23:14           ` Dinh Nguyen
2014-09-11 17:14         ` Tom Rini
2014-09-11 23:19           ` Dinh Nguyen
2014-09-12  5:25             ` Wolfgang Denk
2014-09-12 18:27               ` Dinh Nguyen
2014-09-12 19:46                 ` Wolfgang Denk
2014-09-12 21:15                   ` Dinh Nguyen
2014-09-12 22:14                     ` Wolfgang Denk
2014-09-12 22:29                       ` Dinh Nguyen
2014-09-12 22:51                         ` Wolfgang Denk
2014-09-14 16:02                           ` Dinh Nguyen
2014-09-14 16:46                             ` Tom Rini
2014-09-15  1:07                               ` Chin Liang See
2014-09-15  1:27                                 ` Marek Vasut
2014-09-15  1:43                                   ` Chin Liang See
2014-09-15  1:47                                     ` Marek Vasut
2014-09-14 16:51                             ` Wolfgang Denk
2014-09-12 19:57                 ` Michael Trimarchi
2014-09-12 21:05                 ` David Hawkins
2014-09-12 21:20                   ` Michael Trimarchi
2014-09-12 21:23                     ` David Hawkins
2014-09-12 21:30                       ` Michael Trimarchi
2014-09-12 21:32                   ` Dinh Nguyen
2014-09-12 22:37                     ` Wolfgang Denk
2014-09-15  1:35                       ` Chin Liang See
2014-09-15  8:53                         ` [U-Boot] mainline u-boot on socfpga Pavel Machek
2014-09-13 17:24                     ` [U-Boot] u-boot-socfpga repository David Hawkins
2014-09-14 15:39                       ` Dinh Nguyen
2014-09-14 16:30                         ` Wolfgang Denk
2014-09-14 20:04                         ` David Hawkins
2014-09-13  0:16                   ` David Hawkins
2014-09-12 18:00       ` Michal Simek
2014-09-12 19:45         ` Wolfgang Denk
2014-09-11 15:46     ` Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMhH57Tp302tcPwTFPu5stNzcBH491t8tDLEESb-7XhMzuBU2w@mail.gmail.com \
    --to=yamada.m@jp.panasonic.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.