git-upload-pack
Send objects packed back to git-fetch-pack
Synopsis
git-upload-pack
[--strict] [--timeout=<n>]
<directory>
add an example, a script, a trick and tips
examples
source
chmod +x not_ssh
'
test_expect_success 'clone calls
git-upload-pack unqualified with no -u option'
'
GIT_SSH=./not_ssh git clone
localhost:/path/to/repo junk
GIT_SSH=./not_ssh git clone
localhost:/path/to/repo junk
echo "localhost git-upload-pack
'\''/path/to/repo'\''" >expected
source
GIT_SSH=./not_ssh git clone
localhost:/path/to/repo junk
echo "localhost git-upload-pack
'\''/path/to/repo'\''" >expected
test_expect_success 'clone calls specified git
upload-pack with -u option' '
GIT_SSH=./not_ssh git clone -u
./something/bin/git-upload-pack localhost:/path/to/repo
junk
source
test_must_fail git clone localhost:/path/to/repo
junk
) &&
echo "localhost git-upload-pack
'\''/path/to/repo'\''" >expected &&
test_cmp expected not_ssh_output
GIT_SSH=./not_ssh &&
export GIT_SSH &&
test_must_fail git clone -u
./something/bin/git-upload-pack localhost:/path/to/repo
junk
description
Invoked by
git fetch-pack, learns what objects the other
side is missing, and sends them after packing.
This command is
usually not invoked directly by the end user. The UI for the
protocol is on the git fetch-pack side, and the
program pair is meant to be used to pull updates from a
remote repository. For push operations, see git
send-pack.
options
--strict
Do not try
<directory>/.git/ if <directory> is no git
directory.
--timeout=<n>
Interrupt transfer after
<n> seconds of inactivity.
<directory>
The repository to sync
from.
git
Part of the git(1) suite
see also
gitnamespaces