File tree Expand file tree Collapse file tree 4 files changed +25
-21
lines changed
Expand file tree Collapse file tree 4 files changed +25
-21
lines changed Original file line number Diff line number Diff line change @@ -7,14 +7,16 @@ credential_netrc = custom_target(
77 install_dir : get_option (' libexecdir' ) / ' git-core' ,
88)
99
10- credential_netrc_testenv = test_environment
11- credential_netrc_testenv.set(' CREDENTIAL_NETRC_PATH' , credential_netrc.full_path())
10+ if get_option (' tests' )
11+ credential_netrc_testenv = test_environment
12+ credential_netrc_testenv.set(' CREDENTIAL_NETRC_PATH' , credential_netrc.full_path())
1213
13- test (' t-git-credential-netrc' ,
14- shell,
15- args : [ meson .current_source_dir() / ' t-git-credential-netrc.sh' ],
16- workdir : meson .current_source_dir(),
17- env : credential_netrc_testenv,
18- depends : test_dependencies + bin_wrappers + [credential_netrc],
19- timeout : 0 ,
20- )
14+ test (' t-git-credential-netrc' ,
15+ shell,
16+ args : [ meson .current_source_dir() / ' t-git-credential-netrc.sh' ],
17+ workdir : meson .current_source_dir(),
18+ env : credential_netrc_testenv,
19+ depends : test_dependencies + bin_wrappers + [credential_netrc],
20+ timeout : 0 ,
21+ )
22+ endif
Original file line number Diff line number Diff line change @@ -12,16 +12,18 @@ git_subtree = custom_target(
1212 install_dir : get_option (' libexecdir' ) / ' git-core' ,
1313)
1414
15- subtree_test_environment = test_environment
16- subtree_test_environment.prepend(' PATH' , meson .current_build_dir())
15+ if get_option (' tests' )
16+ subtree_test_environment = test_environment
17+ subtree_test_environment.prepend(' PATH' , meson .current_build_dir())
1718
18- test (' t7900-subtree' , shell,
19- args : [ ' t7900-subtree.sh' ],
20- env : subtree_test_environment,
21- workdir : meson .current_source_dir() / ' t' ,
22- depends : test_dependencies + bin_wrappers + [ git_subtree ],
23- timeout : 0 ,
24- )
19+ test (' t7900-subtree' , shell,
20+ args : [ ' t7900-subtree.sh' ],
21+ env : subtree_test_environment,
22+ workdir : meson .current_source_dir() / ' t' ,
23+ depends : test_dependencies + bin_wrappers + [ git_subtree ],
24+ timeout : 0 ,
25+ )
26+ endif
2527
2628if get_option (' docs' ).contains(' man' )
2729 subtree_xml = custom_target (
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ $(MAK_DIR_GITWEB)gitweb.cgi: $(MAK_DIR_GITWEB)gitweb.perl
118118$(MAK_DIR_GITWEB ) static/gitweb.js : $(MAK_DIR_GITWEB ) generate-gitweb-js.sh
119119$(MAK_DIR_GITWEB ) static/gitweb.js : $(addprefix $(MAK_DIR_GITWEB ) ,$(GITWEB_JSLIB_FILES ) )
120120 $(QUIET_GEN )$(RM ) $@ $@ + && \
121- $(MAK_DIR_GITWEB ) generate-gitweb-js.sh $@ + $^ && \
121+ $(MAK_DIR_GITWEB ) generate-gitweb-js.sh $@ + $( filter % .js, $^ ) && \
122122 mv $@ + $@
123123
124124# ## Installation rules
Original file line number Diff line number Diff line change @@ -1698,7 +1698,7 @@ bin_wrappers += executable('scalar',
16981698 install_dir : get_option (' libexecdir' ) / ' git-core' ,
16991699)
17001700
1701- if get_option ( ' curl' ).enabled ()
1701+ if curl.found ()
17021702 libgit_curl = declare_dependency (
17031703 sources : [
17041704 ' http.c' ,
You can’t perform that action at this time.
0 commit comments