diff options
author | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-08-29 20:00:39 +0200 |
---|---|---|
committer | Tuncer Ayaz <tuncer.ayaz@gmail.com> | 2011-08-29 20:02:03 +0200 |
commit | 475daf2c4ae1f20cbf2d55ccec53f4690e9acc38 (patch) | |
tree | 83ab56d7c4117c27293a1573badcb651bcc023b1 | |
parent | 93128f2f6b33ce8e613baa686e9f424cfde01f7e (diff) |
Comment git vsn cmd changes
-rw-r--r-- | src/rebar_app_utils.erl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index 5bcba44..fa0fb25 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -166,7 +166,9 @@ vcs_vsn(Vcs, Dir) -> end. vcs_vsn_cmd(git) -> - %% git describe a committish to accomodate for subtrees or deps/apps + %% Explicitly git-describe a committish to accomodate for projects + %% in subdirs which don't have a GIT_DIR. In that case we will + %% get a description of the last commit that touched the subdir. "git describe --always --tags `git log -n 1 --pretty=format:%h .`"; vcs_vsn_cmd(hg) -> "hg identify -i"; vcs_vsn_cmd(bzr) -> "bzr revno"; |