3

git サーバーの LAN 内のコンピューターから、任意のリポジトリから任意のブランチを取得できます。
ただし、任意のリモート コンピューター (git サーバーと同じ LAN 上ではない) では、任意のリポジトリからのマスターのプルは機能しますが、他のブランチのプルはハングします

環境:
- Git サーバーは ubuntu で実行されています
- msysgit とコマンド ラインまたは tortoisegit のいずれかを使用して Windows からプルしています
- 使用される URL は次の形式です。ssh://git@[my.domain]/[proj]/[repo.git]

gitorious がブランチ固有の権限をサポートしていないことは知っています。また、LAN 内ですべてのブランチが機能しているという事実は、何かを示しているに違いありません。

更新:
プルしようとしているブランチが存在しないのではないかと疑ったので、プッシュしてみました。結果は次のとおりです。

git.exe push --progress  "origin" other_branch

To ssh://git@my.domain/proj/repo.git
! [rejected]        other_branch -> other_branch (non-fast-forward)
error: failed to push some refs to 'ssh://git@my.domain/proj/repo.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Merge the remote changes (e.g. 'git pull')
hint: before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

ハングしない面白い...

4

1 に答える 1

0

最初に、ブランチが gitorious webview またはサーバーのファイル システムに存在するかどうかを確認します。

存在する場合は、試して $git pull --rebase origin other_branchください $git push origin other_branch

于 2012-12-13T11:39:46.627 に答える