Skip to content

Commit 44fae3e

Browse files
John Haleyorderedlist
authored andcommitted
Added stuff to show what's going wrong in the pull example
1 parent f2b007d commit 44fae3e

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

examples/pull.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
var nodegit = require("../");
22
var path = require("path");
33

4-
var repoDir = "../../test";
4+
var repoDir = "../downstream";
55

66
var repository;
77

test.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
rm -rf upstream/ downstream/
2+
mkdir upstream
3+
cd upstream
4+
git init
5+
touch commit-a
6+
git add .
7+
git commit -m "a"
8+
cd ..
9+
git clone upstream downstream
10+
cd upstream
11+
touch commit-b
12+
git add .
13+
git commit -m "b"
14+
cd ..
15+
node examples/pull.js

0 commit comments

Comments
 (0)