There was an error while loading. Please reload this page.
1 parent 681b34e commit eb30a5dCopy full SHA for eb30a5d
1 file changed
src/tools/vcs-git.jam
@@ -51,7 +51,14 @@ rule generate-version-string
51
errors.user-error "vcs-git: $(directory) is not a Git repository." ;
52
}
53
54
- v = [ SHELL "(cd $(directory) && git describe --tags --exact-match --dirty)" ] ;
+ if [ os.name ] = NT
55
+ {
56
+ v = [ SHELL "(cd $(directory) && git describe --tags --exact-match --dirty) 2> NUL" ] ;
57
+ }
58
+ else
59
60
+ v = [ SHELL "(cd $(directory) && git describe --tags --exact-match --dirty) 2> /dev/null" ] ;
61
62
v = [ SPLIT_BY_CHARACTERS $(v) : "\n" ] ;
63
64
if $(v) != ""
0 commit comments