Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Use git_direction

  • Loading branch information...
commit 4f06cc66a6ce81c26bc8af5c554978ca61436468 1 parent fe575ad
@ben ben authored
Showing with 5 additions and 5 deletions.
  1. +2 −2 src/gitteh.cc
  2. +1 −1  src/gitteh.coffee
  3. +2 −2 src/remote.cc
View
4 src/gitteh.cc
@@ -67,8 +67,8 @@ init(Handle<Object> target) {
ImmutableSet(target, String::NewSymbol("minOidLength"), Integer::New(GIT_OID_MINPREFIXLEN));
ImmutableSet(target, String::NewSymbol("types"), CreateTypeObject());
- NODE_DEFINE_CONSTANT(target, GIT_DIR_PUSH);
- NODE_DEFINE_CONSTANT(target, GIT_DIR_FETCH);
+ NODE_DEFINE_CONSTANT(target, GIT_DIRECTION_PUSH);
+ NODE_DEFINE_CONSTANT(target, GIT_DIRECTION_FETCH);
/*
IndexEntry::Init(target);
View
2  src/gitteh.coffee
@@ -334,7 +334,7 @@ Remote.prototype.connect = ->
[dir, cb] = args
dir: type: "remoteDir"
cb: type: "function"
- dir = if dir is "push" then bindings.GIT_DIR_PUSH else bindings.GIT_DIR_FETCH
+ dir = if dir is "push" then bindings.GIT_DIRECTION_PUSH else bindings.GIT_DIRECTION_FETCH
_priv.native.connect dir, wrapCallback cb, (refs) =>
refNames = Object.keys refs
View
4 src/remote.cc
@@ -39,11 +39,11 @@ namespace gitteh {
class ConnectBaton : public RemoteBaton {
public:
- int direction;
+ git_direction direction;
map<string, git_oid> refs;
ConnectBaton(Remote *remote, int direction) :
- RemoteBaton(remote), direction(direction) { }
+ RemoteBaton(remote), direction((git_direction)direction) { }
};
class DownloadBaton : public RemoteBaton {
Please sign in to comment.
Something went wrong with that request. Please try again.