0

gitプロジェクトで奇妙なエラーが発生しました。

liam@development ~/android/system/system/core $ git push git@development:android.git/platform/system/core.git gingerbread-release-om
Everything up-to-date
liam@development ~/android/system/system/core $ git status
# On branch gingerbread-release-om
# Your branch is ahead of 'development/gingerbread-release-om' by 1 commit.
#
nothing to commit (working directory clean)
liam@development ~/android/system/system/core $

なぜこれが起こるのか誰かが知っていますか?

編集:

liam@development ~/android/system/system/core $ git remote -v
development     git@development:android/platform/system/core (fetch)
development     git@development:android/platform/system/core (push)
4

2 に答える 2

1

URLにプッシュしているとき、gitはリモートブランチを更新しないためです。

development gingerbread-release-omそのメッセージが消えるには、にプッシュする必要があります。

于 2012-05-23T09:36:35.163 に答える
1

編集2:(私はまだ自分の質問に答えることができません)

わかりました、私は今問題を知っています。私のネットワーク管理者は、Androidリポジトリのルートに.gitを追加することで、gitWebのバグを「修正」しました。これは、ローカルソースツリーを同期した後に行われました。これで、リモートは次のようになります。

git@development:android.git/platform/system/core

これを修正するには、実行する必要がありました

git remote set-url development git@development:android.git/platform/system/core git@development:android/platform/system/core

私のAndroidソースツリー全体を修正するには、

repo forall -c 'pwd; git remote -v; git remote set-url development git@development:android.git/platform/$REPO_PATH git@development:android/platform/$REPO_PATH; git remote -v'

ソースツリーのルートから。変更を明確にするために、そこに少し余分なものを追加しました。

修正したら、実行しました:

liam@development ~/android/system/system/core $ git status
# On branch gingerbread-release-om
# Your branch is ahead of 'development/gingerbread-release-om' by 1 commit.
#
nothing to commit (working directory clean)
liam@development ~/android/system/system/core $ git push
Everything up-to-date
liam@development ~/android/system/system/core $ git status
# On branch gingerbread-release-om
nothing to commit (working directory clean)
liam@development ~/android/system/system/core $

並べ替えました!

于 2012-05-24T08:08:24.120 に答える