diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 15:48:13 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-06 19:34:32 +1000 |
commit | b1df0fafa216bb2784bedb82bdbeace9df931a02 (patch) | |
tree | 518c6193466de6c032b2477dbc236f7e50f7c436 /test | |
parent | 15046a0454ce15469a3245c0e88efebd0a316a11 (diff) |
remove junk test
Diffstat (limited to 'test')
69 files changed, 0 insertions, 886 deletions
diff --git a/test/integration/branchReset/branchRebase_Copy/actual b/test/integration/branchReset/branchRebase_Copy/actual deleted file mode 160000 -Subproject e4d09d787c93d627d1eebfded115c75e8342ee0 diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/COMMIT_EDITMSG b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/COMMIT_EDITMSG deleted file mode 100644 index 8ef87ec12..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/COMMIT_EDITMSG +++ /dev/null @@ -1,17 +0,0 @@ -first commit on master - -# Please enter the commit message for your changes. Lines starting -# with '#' will be ignored, and an empty message aborts the commit. -# -# interactive rebase in progress; onto e23041d -# Last command done (1 command done): -# pick 5bc64a0 first commit on master -# Next commands to do (3 remaining commands): -# drop 8c464cc second commit on master -# drop 9ec3d8f third commit on master -# You are currently rebasing branch 'master' on 'e23041d'. -# -# Changes to be committed: -# modified: directory/file2 -# modified: file1 -# diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/FETCH_HEAD b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/FETCH_HEAD deleted file mode 100644 index e69de29bb..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/FETCH_HEAD +++ /dev/null diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/HEAD b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/HEAD deleted file mode 100644 index cb089cd89..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/HEAD +++ /dev/null @@ -1 +0,0 @@ -ref: refs/heads/master diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/ORIG_HEAD b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/ORIG_HEAD deleted file mode 100644 index 4c0b2873b..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/ORIG_HEAD +++ /dev/null @@ -1 +0,0 @@ -5bc64a01e7b980e97f714fba45aa18f0eef726fb diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/config b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/config deleted file mode 100644 index 8ae104545..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/config +++ /dev/null @@ -1,10 +0,0 @@ -[core] - repositoryformatversion = 0 - filemode = true - bare = false - logallrefupdates = true - ignorecase = true - precomposeunicode = true -[user] - email = CI@example.com - name = CI diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/description b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/description deleted file mode 100644 index 498b267a8..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/description +++ /dev/null @@ -1 +0,0 @@ -Unnamed repository; edit this file 'description' to name the repository. diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/applypatch-msg.sample b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/applypatch-msg.sample deleted file mode 100755 index a5d7b84a6..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/applypatch-msg.sample +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message taken by -# applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. The hook is -# allowed to edit the commit message file. -# -# To enable this hook, rename this file to "applypatch-msg". - -. git-sh-setup -commitmsg="$(git rev-parse --git-path hooks/commit-msg)" -test -x "$commitmsg" && exec "$commitmsg" ${1+"$@"} -: diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/commit-msg.sample b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/commit-msg.sample deleted file mode 100755 index b58d1184a..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/commit-msg.sample +++ /dev/null @@ -1,24 +0,0 @@ -#!/bin/sh -# -# An example hook script to check the commit log message. -# Called by "git commit" with one argument, the name of the file -# that has the commit message. The hook should exit with non-zero -# status after issuing an appropriate message if it wants to stop the -# commit. The hook is allowed to edit the commit message file. -# -# To enable this hook, rename this file to "commit-msg". - -# Uncomment the below to add a Signed-off-by line to the message. -# Doing this in a hook is a bad idea in general, but the prepare-commit-msg -# hook is more suited to it. -# -# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') -# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1" - -# This example catches duplicate Signed-off-by lines. - -test "" = "$(grep '^Signed-off-by: ' "$1" | - sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || { - echo >&2 Duplicate Signed-off-by lines. - exit 1 -} diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/fsmonitor-watchman.sample b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/fsmonitor-watchman.sample deleted file mode 100755 index e673bb398..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/fsmonitor-watchman.sample +++ /dev/null @@ -1,114 +0,0 @@ -#!/usr/bin/perl - -use strict; -use warnings; -use IPC::Open2; - -# An example hook script to integrate Watchman -# (https://facebook.github.io/watchman/) with git to speed up detecting -# new and modified files. -# -# The hook is passed a version (currently 1) and a time in nanoseconds -# formatted as a string and outputs to stdout all files that have been -# modified since the given time. Paths must be relative to the root of -# the working tree and separated by a single NUL. -# -# To enable this hook, rename this file to "query-watchman" and set -# 'git config core.fsmonitor .git/hooks/query-watchman' -# -my ($version, $time) = @ARGV; - -# Check the hook interface version - -if ($version == 1) { - # convert nanoseconds to seconds - $time = int $time / 1000000000; -} else { - die "Unsupported query-fsmonitor hook version '$version'.\n" . - "Falling back to scanning...\n"; -} - -my $git_work_tree; -if ($^O =~ 'msys' || $^O =~ 'cygwin') { - $git_work_tree = Win32::GetCwd(); - $git_work_tree =~ tr/\\/\//; -} else { - require Cwd; - $git_work_tree = Cwd::cwd(); -} - -my $retry = 1; - -launch_watchman(); - -sub launch_watchman { - - my $pid = open2(\*CHLD_OUT, \*CHLD_IN, 'watchman -j --no-pretty') - or die "open2() failed: $!\n" . - "Falling back to scanning...\n"; - - # In the query expression below we're asking for names of files that - # changed since $time but were not transient (ie created after - # $time but no longer exist). - # - # To accomplish this, we're using the "since" generator to use the - # recency index to select candidate nodes and "fields" to limit the - # output to file names only. Then we're using the "expression" term to - # further constrain the results. - # - # The category of transient files that we want to ignore will have a - # creation clock (cclock) newer than $time_t value and will also not - # currently exist. - - my $query = <<" END"; - ["query", "$git_work_tree", { - "since": $time, - "fields": ["name"], - "expression": ["not", ["allof", ["since", $time, "cclock"], ["not", "exists"]]] - }] - END - - print CHLD_IN $query; - close CHLD_IN; - my $response = do {local $/; <CHLD_OUT>}; - - die "Watchman: command returned no output.\n" . - "Falling back to scanning...\n" if $response eq ""; - die "Watchman: command returned invalid output: $response\n" . - "Falling back to scanning...\n" unless $response =~ /^\{/; - - my $json_pkg; - eval { - require JSON::XS; - $json_pkg = "JSON::XS"; - 1; - } or do { - require JSON::PP; - $json_pkg = "JSON::PP"; - }; - - my $o = $json_pkg->new->utf8->decode($response); - - if ($retry > 0 and $o->{error} and $o->{error} =~ m/unable to resolve root .* directory (.*) is not watched/) { - print STDERR "Adding '$git_work_tree' to watchman's watch list.\n"; - $retry--; - qx/watchman watch "$git_work_tree"/; - die "Failed to make watchman watch '$git_work_tree'.\n" . - "Falling back to scanning...\n" if $? != 0; - - # Watchman will always return all files on the first query so - # return the fast "everything is dirty" flag to git and do the - # Watchman query just to get it over with now so we won't pay - # the cost in git to look up each individual file. - print "/\0"; - eval { launch_watchman() }; - exit 0; - } - - die "Watchman: $o->{error}.\n" . - "Falling back to scanning...\n" if $o->{error}; - - binmode STDOUT, ":utf8"; - local $, = "\0"; - print @{$o->{files}}; -} diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/post-update.sample b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/post-update.sample deleted file mode 100755 index ec17ec193..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/post-update.sample +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -# -# An example hook script to prepare a packed repository for use over -# dumb transports. -# -# To enable this hook, rename this file to "post-update". - -exec git update-server-info diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/pre-applypatch.sample b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/pre-applypatch.sample deleted file mode 100755 index 4142082bc..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/pre-applypatch.sample +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/sh -# -# An example hook script to verify what is about to be committed -# by applypatch from an e-mail message. -# -# The hook should exit with non-zero status after issuing an -# appropriate message if it wants to stop the commit. -# -# To enable this hook, rename this file to "pre-applypatch". - -. git-sh-setup -precommit="$(git rev-parse --git-path hooks/pre-commit)" -test -x "$precommit" && exec "$precommit" ${1+"$@"} -: diff --git a/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/pre-commit.sample b/test/integration/branchReset/branchRebase_Copy/expected/.git_keep/hooks/pre-commit.sample deleted file mode 100755 index 6a7564163..000000000 --- a/test/integration/branchReset/branchRebase_Copy/expected/.git_k |