@@ -26,13 +26,13 @@ In the guides directory, we like to keep our NodeGit relative to the project
2626root.
2727
2828``` javascript
29- var Git = require (" ../../../" );
29+ var NodeGit = require (" ../../../" );
3030```
3131
3232However, in your project you will most likely be using the following command:
3333
3434``` javascript
35- var Git = require (" nodegit" );
35+ var NodeGit = require (" nodegit" );
3636```
3737
3838### GitHub Personal OAuth Token
@@ -118,7 +118,7 @@ The `remoteCallbacks` object now looks like this:
118118cloneOptions .remoteCallbacks = {
119119 certificateCheck : function () { return 1 ; },
120120 credentials : function () {
121- return Git .Cred .userpassPlaintextNew (GITHUB_TOKEN , " x-oauth-basic" );
121+ return NodeGit .Cred .userpassPlaintextNew (GITHUB_TOKEN , " x-oauth-basic" );
122122 }
123123};
124124```
@@ -129,7 +129,7 @@ You can easily invoke our top-level Clone as a function passing along the three
129129aforementioned arguments.
130130
131131``` javascript
132- var cloneRepository = Git .Clone (cloneURL, localPath, cloneOptions);
132+ var cloneRepository = NodeGit .Clone (cloneURL, localPath, cloneOptions);
133133```
134134
135135Notice how we store the return value from ` Git.Clone ` . This is a
@@ -145,7 +145,7 @@ a function to attempt opening in this case.
145145
146146``` javascript
147147var errorAndAttemptOpen = function () {
148- return Git .Repository .open (local);
148+ return NodeGit .Repository .open (local);
149149};
150150```
151151
@@ -163,4 +163,3 @@ cloneRepository.catch(errorAndAttemptOpen)
163163 console .log (" Is the repository bare? %s" , Boolean (repository .isBare ()));
164164 });
165165```
166-
0 commit comments