Browse Source

support olg git 1.7.9.5

Namdak Tonpa 10 years ago
parent
commit
baa47a7325
3 changed files with 2 additions and 2 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 1 1
      src/mad_deps.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"22fefa").
+-define(VERSION,"5d0be1").

BIN
mad


+ 1 - 1
src/mad_deps.erl

@@ -4,7 +4,7 @@
 
 pull(Config,F) ->
     io:format("==> up: ~p~n", [F]),
-    {_,Status,Message} = sh:run(io_lib:format("git -C ~p pull",[F])),
+    {_,Status,Message} = sh:run(io_lib:format("cd ~p && git pull && cd -",[F])),
     case Status of
          0 -> mad_utils:verbose(Config,Message), false;
          _ -> case binary:match(Message,[<<"You are not currently on a branch">>]) of