Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a vcs module, with Git and Subversion support. #33

Open
wants to merge 19 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
vcs: Ensure vcs-git protects user from git stderr.
This change ensures that stderr is not printed when an exact match, as
expected, is not found.  The stderr from git was confusing to users.
  • Loading branch information
tee3 committed May 31, 2021
commit bc6a976bd4665f4ed6714697faac595d284ba7d8
9 changes: 8 additions & 1 deletion src/tools/vcs-git.jam
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,14 @@ rule generate-version-string
errors.user-error "vcs-git: $(directory) is not a Git repository." ;
}

v = [ SHELL "(cd $(directory) && git describe --tags --exact-match --dirty)" ] ;
if [ os.name ] = NT
{
v = [ SHELL "(cd $(directory) && git describe --tags --exact-match --dirty) 2> NUL" ] ;
}
else
{
v = [ SHELL "(cd $(directory) && git describe --tags --exact-match --dirty) 2> /dev/null" ] ;
}
v = [ SPLIT_BY_CHARACTERS $(v) : "\n" ] ;

if $(v) != ""
Expand Down