mirror of
https://github.com/correl/rebar.git
synced 2024-11-23 19:19:54 +00:00
Add VCS dir check for bzr and svn
This commit is contained in:
parent
3e12630f23
commit
07269ebdb9
1 changed files with 5 additions and 0 deletions
|
@ -373,5 +373,10 @@ has_vcs_dir(git, Dir) ->
|
||||||
filelib:is_dir(filename:join(Dir, ".git"));
|
filelib:is_dir(filename:join(Dir, ".git"));
|
||||||
has_vcs_dir(hg, Dir) ->
|
has_vcs_dir(hg, Dir) ->
|
||||||
filelib:is_dir(filename:join(Dir, ".hg"));
|
filelib:is_dir(filename:join(Dir, ".hg"));
|
||||||
|
has_vcs_dir(bzr, Dir) ->
|
||||||
|
filelib:is_dir(filename:join(Dir, ".bzr"));
|
||||||
|
has_vcs_dir(svn, Dir) ->
|
||||||
|
filelib:is_dir(filename:join(Dir, ".svn"))
|
||||||
|
orelse filelib:is_dir(filename:join(Dir, "_svn"));
|
||||||
has_vcs_dir(_, _) ->
|
has_vcs_dir(_, _) ->
|
||||||
true.
|
true.
|
||||||
|
|
Loading…
Reference in a new issue