Reynir Björnsson
248a6cdde9
Since mgit is not a public executable it will not be present in $PATH - so we must use %{exe:...} over %{bin:...}. The fix is partial because the (enabled_if ...) stanza doesn't work correctly for me at least.
28 lines
684 B
Perl
28 lines
684 B
Perl
Batch operation
|
|
$ mkdir simple
|
|
$ cd simple
|
|
$ git init --bare -q 2> /dev/null
|
|
$ cd ..
|
|
$ git daemon --base-path=. --export-all --enable=receive-pack --reuseaddr --pid-file=pid --detach
|
|
$ mgit git://localhost/simple#main <<EOF
|
|
> fold
|
|
> set /bar "Git rocks!"
|
|
> set /foo "Hello World!"
|
|
> exists /bar
|
|
> quit
|
|
> quit
|
|
/bar does not exists
|
|
$ mgit git://localhost/simple#main <<EOF
|
|
> list /
|
|
> get /bar
|
|
> get /foo
|
|
> quit
|
|
- /bar
|
|
- /foo
|
|
00000000: 4769 7420 726f 636b 7321 Git rocks!
|
|
00000000: 4865 6c6c 6f20 576f 726c 6421 Hello World!
|
|
$ cd simple
|
|
$ git log main --pretty=oneline | wc -l
|
|
1
|
|
$ cd ..
|
|
$ kill $(cat pid)
|