- Feb 19, 2019
-
-
Junio C Hamano authored
Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
* js/test-tool-gen-nuls: tests: teach the test-tool to generate NUL bytes and use it
-
Junio C Hamano authored
* mk/t5562-no-input-to-too-large-an-input-test: t5562: do not depend on /dev/zero Revert "t5562: replace /dev/zero with a pipe from generate_zero_bytes"
-
Junio C Hamano authored
* mk/t5562-do-not-reuse-output-files: t5562: do not reuse output files
-
Max Kirillov authored
Some expected failures of git-http-backend leaves running its children (receive-pack or upload-pack) which still hold opened descriptors to act.err and with some probability they live long enough to write there their failure messages after next test has already truncated the files. This causes occasional failures of the test script. Avoid the issue by using separated output and error file for each test, apprending the test number to their name. Reported-by:
Carlo Arenas <carenas@gmail.com> Helped-by:
Carlo Arenas <carenas@gmail.com> Helped-by:
Junio C Hamano <gitster@pobox.com> Signed-off-by:
Max Kirillov <max@max630.net> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Johannes Schindelin authored
In cc95bc20 (t5562: replace /dev/zero with a pipe from generate_zero_bytes, 2019-02-09), we replaced usage of /dev/zero (which is not available on NonStop, apparently) by a Perl script snippet to generate NUL bytes. Sadly, it does not seem to work on NonStop, as t5562 reportedly hangs. Worse, this also hangs in the Ubuntu 16.04 agents of the CI builds on Azure Pipelines: for some reason, the Perl script snippet that is run via `generate_zero_bytes` in t5562's 'CONTENT_LENGTH overflow ssite_t' test case tries to write out an infinite amount of NUL bytes unless a broken pipe is encountered, that snippet never encounters the broken pipe, and keeps going until the build times out. Oddly enough, this does not reproduce on the Windows and macOS agents, nor in a local Ubuntu 18.04. This developer tried for a day to figure out the exact circumstances under which this hang happens, to no avail, the details remain a mystery. In the end, though, what counts is that this here change incidentally fixes that hang (maybe also on NonStop?). Even more positively, it gets rid of yet another unnecessary Perl invocation. Signed-off-by:
Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Max Kirillov authored
It was reported [1] that NonStop platform does not have /dev/zero. The test uses /dev/zero as a dummy input. Passing case (http-backed failed because of too big input size) should not be reading anything from it. If http-backend would erroneously try to read any data returning EOF probably would be even safer than providing some meaningless data. Replace /dev/zero with /dev/null to avoid issues with platforms which do not have /dev/zero. [1] https://public-inbox.org/git/20190209185930.5256-4-randall.s.becker@rogers.com/ Reported-by:
Randall S. Becker <rsbecker@nexbridge.com> Signed-off-by:
Max Kirillov <max@max630.net> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Revert cc95bc20 ("t5562: replace /dev/zero with a pipe from generate_zero_bytes", 2019-02-09), as not feeding anything to the command is a better way to test it.
-
- Feb 15, 2019
-
-
Johannes Schindelin authored
Running up to v2.21.0, we fixed two bugs that were made prominent by the Windows-specific change to retain copies of only the 30 latest getenv() calls' returned strings, invalidating any copies of previous getenv() calls' return values. While this really shines a light onto bugs of the form where we hold onto getenv()'s return values without copying them, it is also a real problem for users. And even if Jeff King's patches merged via 773e4088 (Merge branch 'jk/save-getenv-result', 2019-01-29) provide further work on that front, we are far from done. Just one example: on Windows, we unset environment variables when spawning new processes, which potentially invalidates strings that were previously obtained via getenv(), and therefore we have to duplicate environment values that are somehow involved in spawning new processes (e.g. GIT_MAN_VIEWER in show_man_page()). We do not have a chance to investigate, let address, all of those issues in time for v2.21.0, so let's at least help Windows users by increasing the number of getenv() calls' return values that are kept valid. The number 64 was determined by looking at the average number of getenv() calls per process in the entire test suite run on Windows (which is around 40) and then adding a bit for good measure. And it is a power of two (which would have hit yesterday's theme perfectly). Signed-off-by:
Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
- Feb 14, 2019
-
-
Junio C Hamano authored
* ea/rebase-compat-doc-fix: docs/git-rebase: remove redundant entry in incompatible options list
-
Junio C Hamano authored
* jc/no-grepping-for-strerror-in-tests: t1404: do not rely on the exact phrasing of strerror()
-
Junio C Hamano authored
"git fetch" and "git upload-pack" learned to send all exchange over the sideband channel while talking the v2 protocol. * jt/fetch-v2-sideband: t/lib-httpd: pass GIT_TEST_SIDEBAND_ALL through Apache
-
Junio C Hamano authored
"git rebase --merge" as been reimplemented by reusing the internal machinery used for "git rebase -i". * en/rebase-merge-on-sequencer: git-rebase.txt: update to reflect merge now implemented on sequencer
-
Elijah Newren authored
Since commit 8fe9c3f2 (Merge branch 'en/rebase-merge-on-sequencer', 2019-02-06), --merge now uses the interactive backend (and matches its behavior) so there is no separate merge backend anymore. Fix an oversight in the docs that should have been updated with the previous change. Signed-off-by:
Elijah Newren <newren@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Todd Zullinger authored
07c3c2aa ("tests: define GIT_TEST_SIDEBAND_ALL", 2019-01-16) added GIT_TEST_SIDEBAND_ALL to the apache.conf PassEnv list. Avoid warnings from Apache when the variable is unset, as we do for GIT_VALGRIND* and GIT_TRACE, from f6288254 ("t/lib-httpd: handle running under --valgrind", 2012-07-24) and 89c57ab3 ("t: pass GIT_TRACE through Apache", 2015-03-13), respectively. Signed-off-by:
Todd Zullinger <tmz@pobox.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Not even in C locale, it is wrong to expect that the exact phrasing "File exists" is used to show EEXIST. Reported-by:
Randall S. Becker <rsbecker@nexbridge.com> Helped-by:
Duy Nguyen <pclouds@gmail.com> Helped-by:
Jeff King <peff@peff.net> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Emilio Cobos Álvarez authored
The --autosquash option is implied by the earlier --[no-]autosquash entry in the list. Signed-off-by:
Emilio Cobos Álvarez <emilio@crisal.io> Reviewed-by:
Elijah Newren <newren@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
* ab/rebase-test-fix: rebase: fix regression in rebase.useBuiltin=false test mode
-
Junio C Hamano authored
* rb/no-dev-zero-in-test: t5562: replace /dev/zero with a pipe from generate_zero_bytes t5318: replace use of /dev/zero with generate_zero_bytes test-lib-functions.sh: add generate_zero_bytes function
-
Junio C Hamano authored
* rs/bash-is-in-coreutils-on-nonstop: config.mak.uname: move location of bash on NonStop to CoreUtils
-
Junio C Hamano authored
Windows update. * js/mingw-host-cpu: mingw: use a more canonical method to fix the CPU reporting
-
Junio C Hamano authored
Test improvement. * sg/stress-test: test-lib: fix non-portable pattern bracket expressions test-lib: make '--stress' more bisect-friendly
-
Junio C Hamano authored
Test fix. * kd/t0028-octal-del-is-377-not-777: t0028: fix wrong octal values for BOM in setup
-
Junio C Hamano authored
The code and tests assume that the system supplied iconv() would always use BOM in its output when asked to encode to UTF-16 (or UTF-32), but apparently some implementations output big-endian without BOM. A compile-time knob has been added to help such systems (e.g. NonStop) to add BOM to the output to increase portability. * bc/utf16-portability-fix: utf8: handle systems that don't write BOM for UTF-16
-
Junio C Hamano authored
* nd/fileno-may-be-macro: git-compat-util: work around fileno(fp) that is a macro
-
Junio C Hamano authored
* nd/get-oid-with-context-returns-an-enum: get_oid_with_context(): match prototype and implementation
-
Junio C Hamano authored
Code clean-up. * rj/sequencer-sign-off-header-static: sequencer: make sign_off_header a file local symbol
-
- Feb 13, 2019
-
-
Ævar Arnfjörð Bjarmason authored
Fix a recently introduced regression in c762aada ("rebase -x: sanity check command", 2019-01-29) triggered when running the tests with GIT_TEST_REBASE_USE_BUILTIN=false. See 62c23938 ("tests: add a special setup where rebase.useBuiltin is off", 2018-11-14) for how that test mode works. As discussed on-list[1] it's not worth it to implement the sanity check in the legacy rebase code, we plan to remove it after the 2.21 release. So let's do the bare minimum to make the tests pass under the GIT_TEST_REBASE_USE_BUILTIN=false special setup. 1. https://public-inbox.org/git/xmqqva1nbeno.fsf@gitster-ct.c.googlers.com/ Signed-off-by:
Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Johannes Schindelin authored
In `git version --build-options`, we report also the CPU, but in Git for Windows we actually cross-compile the 32-bit version in a 64-bit Git for Windows, so we cannot rely on the auto-detected value. In 3815f64b (mingw: fix CPU reporting in `git version --build-options`, 2019-02-07), we fixed this by a Windows-only workaround, making use of magic pre-processor constants, which works in GCC, but most likely not all C compilers. As pointed out by Eric Sunshine, there is a better way, anyway: to set the Makefile variable HOST_CPU explicitly for cross-compiled Git. So let's do that! This reverts commit 3815f64b partially. Signed-off-by:
Johannes Schindelin <johannes.schindelin@gmx.de> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Randall S. Becker authored
The default bash is now officially in /usr/coreutils/bin instead of in /usr/local/bin. This version of bash is more stable and recommended for all use as of the J06.22 and L18.02 operating system revision levels. This new version provides more stability of test results. Signed-off-by:
Randall S. Becker <rsbecker@nexbridge.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Randall S. Becker authored
To help platforms that lack /dev/zero (e.g. NonStop), replace use of /dev/zero to feed "git http-backend" with a pipe of output from the generate_zero_bytes helper. Signed-off-by:
Randall S. Becker <rsbecker@nexbridge.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Randall S. Becker authored
There are platforms (e.g. NonStop) that lack /dev/zero; use the generate_zero_bytes helper we just introduced to append stream of NULs at the end of the file. The original, even though it uses "dd seek=... count=..." to make it look like it is overwriting the middle part of an existing file, has truncated the file before this step with another use of "dd", which may make it tricky to see why this rewrite is a correct one. Signed-off-by:
Randall S. Becker <rsbecker@nexbridge.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
- Feb 12, 2019
-
-
Nguyễn Thái Ngọc Duy authored
The get_oid_with_context() function is declared to return an enum in cache.h, but defined to return an int in sha1-name.c. The compiler notices this on AIX and rejects the build, since d1dd94b3 (Do not print 'dangling' for cat-file in case of ambiguity - 2019-01-17) was merged. Return the correct type from the implementation to fix this. Signed-off-by:
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Nguyễn Thái Ngọc Duy authored
On various BSD's, fileno(fp) is implemented as a macro that directly accesses the fields in the FILE * object, which breaks a function that accepts a "void *fp" parameter and calls fileno(fp) and expect it to work. Work it around by adding a compile-time knob FILENO_IS_A_MACRO that inserts a real helper function in the middle of the callchain. Signed-off-by:
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Randall S. Becker authored
t5318 and t5562 used /dev/zero, which is not portable. This function provides both a fixed block of NUL bytes and an infinite stream of NULs. Signed-off-by:
Randall S. Becker <rsbecker@nexbridge.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Jeff King authored
These are just some small fixes I noticed doing a complete read-through (there are a few cases I left that are incomplete or abbreviated sentences, but I think those are OK in this sort of bullet-list style). Signed-off-by:
Jeff King <peff@peff.net> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Jeff King authored
In the feature that was eventually committed, "--date=auto" doesn't do anything. It was generalized to "--date=auto:<format>". Signed-off-by:
Jeff King <peff@peff.net> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-
Junio C Hamano authored
* nd/imap-send-typofix: imap-send.c: add a missing space in error message
-
Nguyễn Thái Ngọc Duy authored
Signed-off-by:
Nguyễn Thái Ngọc Duy <pclouds@gmail.com> Signed-off-by:
Junio C Hamano <gitster@pobox.com>
-