Commits
- Commit:
f6592003af9cd04c23a4990f6194b62532570ec8
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add a basic regression test for 'got clone' over HTTP
- Commit:
f73bf5bd9e54af999a744c731dfb492e1c9b2b6d
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
replace "(cd path && git cmd)" with "git -C path cmd"
This matches the existing use of "got -r path cmd" and
"git_commit path args".
- Commit:
79c49d8454129776fe282b780f5836be20ea0052
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
regress: nix 'set -A' kshism from tests
As reported by naddy, this is a non-portable Korn shell construct.
Instead, use the one argument array then make faux space-delimited string
"arrays" for the other ids; they can still be indexed with pop_idx.
improved by + ok naddy@
- Commit:
fd7552d245966f4a57fdc5ec287c3226d5145391
- From:
- Mark Jamsek <mark@jamsek.dev>
- Date:
implement support for keywords as got <commit> arguments
This begins enabling the use of keywords in got wherever commit ids or
references are used, with more work intended to expand support across all
such instances (e.g., branch, checkout, etc.), and add more keywords.
The keywords ":base" and ":head" can be passed to 'got {diff,log,update} -c'
commands as a substitute for the corresponding commit hash id. Keywords and
references can also be modified by appending a ':+' or ':-' and an optional
integer N to specify by first parent traversal the Nth generation descendant
or antecedent, respectively. If N is omitted, a '1' is implicitly appended.
tweaks + ok op and stsp
- Commit:
ea2819beec950c5a86b5960f5966115816997164
- From:
- Josiah Frentsos <jfrent@tilde.team>
- Via:
- Omar Polo <op@omarpolo.com>
- Date:
consistently use ten Xs in mkstemp(3) templates
patch from Josiah Frentsos, thanks!
- Commit:
760a1ec3d507da3e46a5dc13041ad1a23cfc0847
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make diffing files which changed into dirs and vice-versa possible
Problem marked with a TODO comment by me ages ago and rediscovered by naddy@
ok op@
- Commit:
99a97f809268a7ae2d24198c3c71fea8c884e6d2
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
regress: override locale settings
ok stsp
- Commit:
c498e6d82b643effe611454e1018521173725ca9
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: run gotadmin pack -D if $GOT_TEST_PACK=ref-delta
ok stsp
- Commit:
cde544b29d344a5c884ca3948d1826520308a353
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: allow to run only a subset of the test cases
This allows to run only the test cases named on the command line.
- Commit:
96afb0d62311dd459395b8eba2216094c18dfb67
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make read errors in gotsh serve_read() fatal and adjust tests accordingly
ok jamsek
- Commit:
75b17c2a7d14fc0476cba0375a5a031cf0c13a00
- From:
- Omar Polo <op@omarpolo.com>
- Date:
regress: strip trailing / from GOT_TEST_ROOT
otherwise most test fails because of double "/" ending in paths and
tricking some check into thinking that's failed.
ok jamsek stsp
- Commit:
7370f8029cdaf59e59f78cfc866eeb7b82c76e74
- From:
- Omar Polo <op@omarpolo.com>
- Date:
use GOT_IGNORE_GITCONFIG in regress
fixes test_rebase_no_author_info when a valid ~/.gitconfig is found.
ok stsp@
- Commit:
49c543a6fe888394ca86e6399c706a9965486134
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
use test(1) -eq and -ne to compare integers, and reduce quoting
This brings the rest of the regression test scripts in line with
patch.sh.
- Commit:
a8a244dd9f028cb4a3a7f05a51ec1bdcb96f3195
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
simpler fix equivalent to the previous commit
- Commit:
6fa5c67c875cf510a1e15f6c6ceda66cbbc343ed
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
remove loose objects if running tests with GOT_TEST_PACK
- Commit:
0a26275fe182db5175d613f1525905f45d37a4bf
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use 'gotadmin pack' instead of 'git repack' if testing with GOT_TEST_PACK
- Commit:
78caff98cb8783be4d83da7279e407d4ccd1f187
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
explicitly set the default branch name after 'git init' in regress tests
We need to do this because newer versions of Git support an arbitrary default
branch name which can be set by users. We don't want tests to fail when this
option is used.
pointed out by Thomas Adam
- Commit:
f0fd0aafb69cafd7c84dd294cffda4b3c1d6144a
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
make 'got send' regression tests run 'git fsck' on all involved repositories
- Commit:
e600f1246e15fff13251ba9d299d74a24ae579c2
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
ensure that old commits remain referenced after rebase and histedit
Create automatic "backup" references which ensure that objects from
the pre-rebase or pre-histedit state remain in the repository.
A new -l option for 'got rebase' and 'got histedit' lists old commits.
This makes it easier to recover from botched rebase or histedit operations.
Removal of such objects currently requires got ref -d and git-gc.
This will be made more convenient in the future.
testing and ok jrick
- Commit:
54c39596938ae6d19fe5eede072d36a3f61baa12
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
use POSIX [s1 = s2] syntax instead of [s1 == s2]; patch by Ryo ONODERA
- Commit:
6c8da0c69eacfa9be3899f93eb7b1e78bd5533f1
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
rewrite argument parsing with the POSIX getopts shell built-in
ok stsp
- Commit:
e5a14fe3f9e59a98ad7f7fd0987bd913d404f7e6
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
missed one case while changing $() to `` (found by rczlonka)
- Commit:
743f0d3e8ead71af69563ac2855766f4f1c4d7de
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
add quotes around $GOT_TEST_ROOT and avoid mktemp -p; suggested by naddy
- Commit:
11f4fa81f7f7aabf7d522a63257765a89926f3e0
- From:
- Stefan Sperling <stsp@stsp.name>
- Date:
allow regress test data to be stored in locations other than /tmp
- Commit:
9439a9901031adbd5c05fec5a5f692144bb3fd53
- From:
- Christian Weisgerber <naddy@mips.inka.de>
- Date:
replace ksh syntax with POSIX arithmetic expressions
ok kn stsp