6

In Git, i tried peer to peer sharing in my local network, but ended with the error "fatal: read error: Invalid argument".

I followed below steps.

PC1:

$cd /d/all-repos
$git daemon --verbose --export-all –base-path=.

PC2:

$cd <repository name>
$git remote add developer1 git://<PC1 name or IP address>/testrepo
$git fetch developer1
fatal: read error: Invalid argument

Git version : git version 1.7.11.msysgit.0 OS: Win XP Note: Added the git port 9418 in firewall settings on both the PC's.

Pls Guide me how to solve this.

tenorsax
  • 21,123
  • 9
  • 60
  • 107
Seenivasan
  • 101
  • 1
  • 2

1 Answers1

1

When doing the following steps, everything works:

~/git1$ git init foo
# create some commits in foo
~/git1$ git daemon --verbose --export-all --port=9999 --base-path=$PWD

~/git1$ cd ../git2
~/git2$ git clone git://[::1]:9999/foo
# cloning works

Which means that either something is bad with either of your repositories or that it is not a git issue but a network issue. In any case, you should try solving your problem with a more interactive process than stackoverflow, maybe some IRC #git channel.

Nowhere man
  • 5,007
  • 3
  • 28
  • 44