diff --git a/.gitattributes b/.gitattributes index 1ef325f1b111266a6b26e0196871bd78baa8c2f3..c88551d94bf26315c61b37961878508450279323 100644 --- a/.gitattributes +++ b/.gitattributes @@ -57,3 +57,35 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text # Video files - compressed *.mp4 filter=lfs diff=lfs merge=lfs -text *.webm filter=lfs diff=lfs merge=lfs -text +objects/e9/f7b0e601ff95cdcaa3b36e42cbaac26ef4a4f9 filter=lfs diff=lfs merge=lfs -text +objects/e9/d1119c938d314c4f790ab61dc01ec27fa303fb filter=lfs diff=lfs merge=lfs -text +objects/aa/2edd895658aa4114fb51e30936183f1a4a156c filter=lfs diff=lfs merge=lfs -text +objects/4b/97bc166db5cfa0a8b93e5be006037ea1315b7b filter=lfs diff=lfs merge=lfs -text +objects/0e/8c3e126994d172b206c56520e1220910776441 filter=lfs diff=lfs merge=lfs -text +objects/69/58a6c838b5753b0d909626075fdb725dca4e3a filter=lfs diff=lfs merge=lfs -text +objects/b6/1bd9d1cd2ed232b19315811fa8f7e84a035ed4 filter=lfs diff=lfs merge=lfs -text +objects/b4/4c7b545558b9a79cd68cfe1eb49315c6a40307 filter=lfs diff=lfs merge=lfs -text +objects/f2/cd2f4304120c051ac60072c31e658041dd3753 filter=lfs diff=lfs merge=lfs -text +objects/2a/9eb997b456d81120402e85ff67a30392a30dda filter=lfs diff=lfs merge=lfs -text +objects/c9/5e29b7fe95ba5d7c59acd0579a30d74e624c90 filter=lfs diff=lfs merge=lfs -text +objects/cd/b29b617db95c1ea011137893b9510479b437f7 filter=lfs diff=lfs merge=lfs -text +objects/11/d279c1c328cb2299d5db6de96d5de4c5ead247 filter=lfs diff=lfs merge=lfs -text +objects/0e/4ada657439b94eb571b365f5330b08fcdf5374 filter=lfs diff=lfs merge=lfs -text +objects/b6/c63ef0d46f1db6579055a9d627303f5bb2868f filter=lfs diff=lfs merge=lfs -text +objects/22/a5299dd1eee4a0d3e354178b5a40c37233c611 filter=lfs diff=lfs merge=lfs -text +objects/10/dad8fec025bcf873dd9a6890bd458261295913 filter=lfs diff=lfs merge=lfs -text +objects/22/9c23f1943fd09d6c3812e6e5bf876f7d8b2a04 filter=lfs diff=lfs merge=lfs -text +objects/a1/c544ccde19a8d53e22232f3656297d1dd46714 filter=lfs diff=lfs merge=lfs -text +objects/fa/28d886662f85f804582ad8a986adc9e4f25d37 filter=lfs diff=lfs merge=lfs -text +objects/02/d3c36bd6ea568da02e112930910794842d1081 filter=lfs diff=lfs merge=lfs -text +objects/de/81be00a628b8bb6faede458d651d9e3b19c173 filter=lfs diff=lfs merge=lfs -text +objects/fa/5dfad4d9c0f28e62f7fd39d3f0d6183c608130 filter=lfs diff=lfs merge=lfs -text +objects/db/4b73fca0718f040d61a4d66b6ff0bf601ddf88 filter=lfs diff=lfs merge=lfs -text +objects/df/4abee33983ea75bd9d7f2ce037b0a20213c22c filter=lfs diff=lfs merge=lfs -text +objects/ec/d34a924fe02e5c2a61535193a6d61d7a37eed5 filter=lfs diff=lfs merge=lfs -text +objects/1a/93249ac8c4a5da1f071cb19ad0ee603ee8c64f filter=lfs diff=lfs merge=lfs -text +objects/a1/65bf5624f670eedc9fd1954b88f5b15e4398b9 filter=lfs diff=lfs merge=lfs -text +objects/7d/e3cbf4315c2c307978e123f86b4b9daa3381df filter=lfs diff=lfs merge=lfs -text +objects/3c/7a703b4a6d6e5f84e5cdf6970fba4e3d79b2d3 filter=lfs diff=lfs merge=lfs -text +objects/ec/7938aebae6f96a1245d7c0fd90e22648754dcd filter=lfs diff=lfs merge=lfs -text +objects/fb/a02048aebbcda4e32c9201c5e2472e28cb95ae filter=lfs diff=lfs merge=lfs -text diff --git a/HEAD b/HEAD new file mode 100644 index 0000000000000000000000000000000000000000..cb089cd89a7d7686d284d8761201649346b5aa1c --- /dev/null +++ b/HEAD @@ -0,0 +1 @@ +ref: refs/heads/master diff --git a/config b/config new file mode 100644 index 0000000000000000000000000000000000000000..6570fbb24e5b3de57a3eabe6ed3b5323be49b88d --- /dev/null +++ b/config @@ -0,0 +1,11 @@ +[core] + repositoryformatversion = 0 + filemode = true + bare = false + logallrefupdates = true +[remote "origin"] + url = git@hf.co:sirbastiano94/Maya4 + fetch = +refs/heads/*:refs/remotes/origin/* +[lfs "customtransfer.multipart"] + path = hf + args = lfs-multipart-upload diff --git a/description b/description new file mode 100644 index 0000000000000000000000000000000000000000..498b267a8c7812490d6479839c5577eaaec79d62 --- /dev/null +++ b/description @@ -0,0 +1 @@ +Unnamed repository; edit this file 'description' to name the repository. diff --git a/hooks/applypatch-msg.sample b/hooks/applypatch-msg.sample new file mode 100644 index 0000000000000000000000000000000000000000..a5d7b84a673458d14d9aab082183a1968c2c7492 --- /dev/null +++ b/hooks/applypatch-msg.sample @@ -0,0 +1,15 @@ +#!/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/hooks/commit-msg.sample b/hooks/commit-msg.sample new file mode 100644 index 0000000000000000000000000000000000000000..b58d1184a9d43a39c0d95f32453efc78581877d6 --- /dev/null +++ b/hooks/commit-msg.sample @@ -0,0 +1,24 @@ +#!/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/hooks/fsmonitor-watchman.sample b/hooks/fsmonitor-watchman.sample new file mode 100644 index 0000000000000000000000000000000000000000..ef94fa293800b31e3982204f43b13785afebd9bd --- /dev/null +++ b/hooks/fsmonitor-watchman.sample @@ -0,0 +1,109 @@ +#!/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 + # subtract one second to make sure watchman will return all changes + $time = int ($time / 1000000000) - 1; +} 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. + + my $query = <<" END"; + ["query", "$git_work_tree", { + "since": $time, + "fields": ["name"] + }] + END + + print CHLD_IN $query; + close CHLD_IN; + my $response = do {local $/; }; + + 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/hooks/post-update.sample b/hooks/post-update.sample new file mode 100644 index 0000000000000000000000000000000000000000..ec17ec1939b7c3e86b7cb6c0c4de6b0818a7e75e --- /dev/null +++ b/hooks/post-update.sample @@ -0,0 +1,8 @@ +#!/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/hooks/pre-applypatch.sample b/hooks/pre-applypatch.sample new file mode 100644 index 0000000000000000000000000000000000000000..4142082bcb939bbc17985a69ba748491ac6b62a5 --- /dev/null +++ b/hooks/pre-applypatch.sample @@ -0,0 +1,14 @@ +#!/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/hooks/pre-commit.sample b/hooks/pre-commit.sample new file mode 100644 index 0000000000000000000000000000000000000000..6a756416384c210ada2631f17862f5c01fffa478 --- /dev/null +++ b/hooks/pre-commit.sample @@ -0,0 +1,49 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git commit" with no arguments. 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-commit". + +if git rev-parse --verify HEAD >/dev/null 2>&1 +then + against=HEAD +else + # Initial commit: diff against an empty tree object + against=$(git hash-object -t tree /dev/null) +fi + +# If you want to allow non-ASCII filenames set this variable to true. +allownonascii=$(git config --bool hooks.allownonascii) + +# Redirect output to stderr. +exec 1>&2 + +# Cross platform projects tend to avoid non-ASCII filenames; prevent +# them from being added to the repository. We exploit the fact that the +# printable range starts at the space character and ends with tilde. +if [ "$allownonascii" != "true" ] && + # Note that the use of brackets around a tr range is ok here, (it's + # even required, for portability to Solaris 10's /usr/bin/tr), since + # the square bracket bytes happen to fall in the designated range. + test $(git diff --cached --name-only --diff-filter=A -z $against | + LC_ALL=C tr -d '[ -~]\0' | wc -c) != 0 +then + cat <<\EOF +Error: Attempt to add a non-ASCII file name. + +This can cause problems if you want to work with people on other platforms. + +To be portable it is advisable to rename the file. + +If you know what you are doing you can disable this check using: + + git config hooks.allownonascii true +EOF + exit 1 +fi + +# If there are whitespace errors, print the offending file names and fail. +exec git diff-index --check --cached $against -- diff --git a/hooks/pre-merge-commit.sample b/hooks/pre-merge-commit.sample new file mode 100644 index 0000000000000000000000000000000000000000..399eab1924e39da570b389b0bef1ca713b3b05c3 --- /dev/null +++ b/hooks/pre-merge-commit.sample @@ -0,0 +1,13 @@ +#!/bin/sh +# +# An example hook script to verify what is about to be committed. +# Called by "git merge" with no arguments. The hook should +# exit with non-zero status after issuing an appropriate message to +# stderr if it wants to stop the merge commit. +# +# To enable this hook, rename this file to "pre-merge-commit". + +. git-sh-setup +test -x "$GIT_DIR/hooks/pre-commit" && + exec "$GIT_DIR/hooks/pre-commit" +: diff --git a/hooks/pre-push.sample b/hooks/pre-push.sample new file mode 100644 index 0000000000000000000000000000000000000000..6187dbf4390fc6e28445dd3d988aefb9d1111988 --- /dev/null +++ b/hooks/pre-push.sample @@ -0,0 +1,53 @@ +#!/bin/sh + +# An example hook script to verify what is about to be pushed. Called by "git +# push" after it has checked the remote status, but before anything has been +# pushed. If this script exits with a non-zero status nothing will be pushed. +# +# This hook is called with the following parameters: +# +# $1 -- Name of the remote to which the push is being done +# $2 -- URL to which the push is being done +# +# If pushing without using a named remote those arguments will be equal. +# +# Information about the commits which are being pushed is supplied as lines to +# the standard input in the form: +# +# +# +# This sample shows how to prevent push of commits where the log message starts +# with "WIP" (work in progress). + +remote="$1" +url="$2" + +z40=0000000000000000000000000000000000000000 + +while read local_ref local_sha remote_ref remote_sha +do + if [ "$local_sha" = $z40 ] + then + # Handle delete + : + else + if [ "$remote_sha" = $z40 ] + then + # New branch, examine all commits + range="$local_sha" + else + # Update to existing branch, examine new commits + range="$remote_sha..$local_sha" + fi + + # Check for WIP commit + commit=`git rev-list -n 1 --grep '^WIP' "$range"` + if [ -n "$commit" ] + then + echo >&2 "Found WIP commit in $local_ref, not pushing" + exit 1 + fi + fi +done + +exit 0 diff --git a/hooks/pre-rebase.sample b/hooks/pre-rebase.sample new file mode 100644 index 0000000000000000000000000000000000000000..6cbef5c370d8c3486ca85423dd70440c5e0a2aa2 --- /dev/null +++ b/hooks/pre-rebase.sample @@ -0,0 +1,169 @@ +#!/bin/sh +# +# Copyright (c) 2006, 2008 Junio C Hamano +# +# The "pre-rebase" hook is run just before "git rebase" starts doing +# its job, and can prevent the command from running by exiting with +# non-zero status. +# +# The hook is called with the following parameters: +# +# $1 -- the upstream the series was forked from. +# $2 -- the branch being rebased (or empty when rebasing the current branch). +# +# This sample shows how to prevent topic branches that are already +# merged to 'next' branch from getting rebased, because allowing it +# would result in rebasing already published history. + +publish=next +basebranch="$1" +if test "$#" = 2 +then + topic="refs/heads/$2" +else + topic=`git symbolic-ref HEAD` || + exit 0 ;# we do not interrupt rebasing detached HEAD +fi + +case "$topic" in +refs/heads/??/*) + ;; +*) + exit 0 ;# we do not interrupt others. + ;; +esac + +# Now we are dealing with a topic branch being rebased +# on top of master. Is it OK to rebase it? + +# Does the topic really exist? +git show-ref -q "$topic" || { + echo >&2 "No such branch $topic" + exit 1 +} + +# Is topic fully merged to master? +not_in_master=`git rev-list --pretty=oneline ^master "$topic"` +if test -z "$not_in_master" +then + echo >&2 "$topic is fully merged to master; better remove it." + exit 1 ;# we could allow it, but there is no point. +fi + +# Is topic ever merged to next? If so you should not be rebasing it. +only_next_1=`git rev-list ^master "^$topic" ${publish} | sort` +only_next_2=`git rev-list ^master ${publish} | sort` +if test "$only_next_1" = "$only_next_2" +then + not_in_topic=`git rev-list "^$topic" master` + if test -z "$not_in_topic" + then + echo >&2 "$topic is already up to date with master" + exit 1 ;# we could allow it, but there is no point. + else + exit 0 + fi +else + not_in_next=`git rev-list --pretty=oneline ^${publish} "$topic"` + /usr/bin/perl -e ' + my $topic = $ARGV[0]; + my $msg = "* $topic has commits already merged to public branch:\n"; + my (%not_in_next) = map { + /^([0-9a-f]+) /; + ($1 => 1); + } split(/\n/, $ARGV[1]); + for my $elem (map { + /^([0-9a-f]+) (.*)$/; + [$1 => $2]; + } split(/\n/, $ARGV[2])) { + if (!exists $not_in_next{$elem->[0]}) { + if ($msg) { + print STDERR $msg; + undef $msg; + } + print STDERR " $elem->[1]\n"; + } + } + ' "$topic" "$not_in_next" "$not_in_master" + exit 1 +fi + +<<\DOC_END + +This sample hook safeguards topic branches that have been +published from being rewound. + +The workflow assumed here is: + + * Once a topic branch forks from "master", "master" is never + merged into it again (either directly or indirectly). + + * Once a topic branch is fully cooked and merged into "master", + it is deleted. If you need to build on top of it to correct + earlier mistakes, a new topic branch is created by forking at + the tip of the "master". This is not strictly necessary, but + it makes it easier to keep your history simple. + + * Whenever you need to test or publish your changes to topic + branches, merge them into "next" branch. + +The script, being an example, hardcodes the publish branch name +to be "next", but it is trivial to make it configurable via +$GIT_DIR/config mechanism. + +With this workflow, you would want to know: + +(1) ... if a topic branch has ever been merged to "next". Young + topic branches can have stupid mistakes you would rather + clean up before publishing, and things that have not been + merged into other branches can be easily rebased without + affecting other people. But once it is published, you would + not want to rewind it. + +(2) ... if a topic branch has been fully merged to "master". + Then you can delete it. More importantly, you should not + build on top of it -- other people may already want to + change things related to the topic as patches against your + "master", so if you need further changes, it is better to + fork the topic (perhaps with the same name) afresh from the + tip of "master". + +Let's look at this example: + + o---o---o---o---o---o---o---o---o---o "next" + / / / / + / a---a---b A / / + / / / / + / / c---c---c---c B / + / / / \ / + / / / b---b C \ / + / / / / \ / + ---o---o---o---o---o---o---o---o---o---o---o "master" + + +A, B and C are topic branches. + + * A has one fix since it was merged up to "next". + + * B has finished. It has been fully merged up to "master" and "next", + and is ready to be deleted. + + * C has not merged to "next" at all. + +We would want to allow C to be rebased, refuse A, and encourage +B to be deleted. + +To compute (1): + + git rev-list ^master ^topic next + git rev-list ^master next + + if these match, topic has not merged in next at all. + +To compute (2): + + git rev-list master..topic + + if this is empty, it is fully merged to "master". + +DOC_END diff --git a/hooks/pre-receive.sample b/hooks/pre-receive.sample new file mode 100644 index 0000000000000000000000000000000000000000..a1fd29ec14823d8bc4a8d1a2cfe35451580f5118 --- /dev/null +++ b/hooks/pre-receive.sample @@ -0,0 +1,24 @@ +#!/bin/sh +# +# An example hook script to make use of push options. +# The example simply echoes all push options that start with 'echoback=' +# and rejects all pushes when the "reject" push option is used. +# +# To enable this hook, rename this file to "pre-receive". + +if test -n "$GIT_PUSH_OPTION_COUNT" +then + i=0 + while test "$i" -lt "$GIT_PUSH_OPTION_COUNT" + do + eval "value=\$GIT_PUSH_OPTION_$i" + case "$value" in + echoback=*) + echo "echo from the pre-receive-hook: ${value#*=}" >&2 + ;; + reject) + exit 1 + esac + i=$((i + 1)) + done +fi diff --git a/hooks/prepare-commit-msg.sample b/hooks/prepare-commit-msg.sample new file mode 100644 index 0000000000000000000000000000000000000000..10fa14c5ab0134436e2ae435138bf921eb477c60 --- /dev/null +++ b/hooks/prepare-commit-msg.sample @@ -0,0 +1,42 @@ +#!/bin/sh +# +# An example hook script to prepare the commit log message. +# Called by "git commit" with the name of the file that has the +# commit message, followed by the description of the commit +# message's source. The hook's purpose is to edit the commit +# message file. If the hook fails with a non-zero status, +# the commit is aborted. +# +# To enable this hook, rename this file to "prepare-commit-msg". + +# This hook includes three examples. The first one removes the +# "# Please enter the commit message..." help message. +# +# The second includes the output of "git diff --name-status -r" +# into the message, just before the "git status" output. It is +# commented because it doesn't cope with --amend or with squashed +# commits. +# +# The third example adds a Signed-off-by line to the message, that can +# still be edited. This is rarely a good idea. + +COMMIT_MSG_FILE=$1 +COMMIT_SOURCE=$2 +SHA1=$3 + +/usr/bin/perl -i.bak -ne 'print unless(m/^. Please enter the commit message/..m/^#$/)' "$COMMIT_MSG_FILE" + +# case "$COMMIT_SOURCE,$SHA1" in +# ,|template,) +# /usr/bin/perl -i.bak -pe ' +# print "\n" . `git diff --cached --name-status -r` +# if /^#/ && $first++ == 0' "$COMMIT_MSG_FILE" ;; +# *) ;; +# esac + +# SOB=$(git var GIT_COMMITTER_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p') +# git interpret-trailers --in-place --trailer "$SOB" "$COMMIT_MSG_FILE" +# if test -z "$COMMIT_SOURCE" +# then +# /usr/bin/perl -i.bak -pe 'print "\n" if !$first_line++' "$COMMIT_MSG_FILE" +# fi diff --git a/hooks/update.sample b/hooks/update.sample new file mode 100644 index 0000000000000000000000000000000000000000..80ba94135cc378364af9d3cb2450df48e51faf2c --- /dev/null +++ b/hooks/update.sample @@ -0,0 +1,128 @@ +#!/bin/sh +# +# An example hook script to block unannotated tags from entering. +# Called by "git receive-pack" with arguments: refname sha1-old sha1-new +# +# To enable this hook, rename this file to "update". +# +# Config +# ------ +# hooks.allowunannotated +# This boolean sets whether unannotated tags will be allowed into the +# repository. By default they won't be. +# hooks.allowdeletetag +# This boolean sets whether deleting tags will be allowed in the +# repository. By default they won't be. +# hooks.allowmodifytag +# This boolean sets whether a tag may be modified after creation. By default +# it won't be. +# hooks.allowdeletebranch +# This boolean sets whether deleting branches will be allowed in the +# repository. By default they won't be. +# hooks.denycreatebranch +# This boolean sets whether remotely creating branches will be denied +# in the repository. By default this is allowed. +# + +# --- Command line +refname="$1" +oldrev="$2" +newrev="$3" + +# --- Safety check +if [ -z "$GIT_DIR" ]; then + echo "Don't run this script from the command line." >&2 + echo " (if you want, you could supply GIT_DIR then run" >&2 + echo " $0 )" >&2 + exit 1 +fi + +if [ -z "$refname" -o -z "$oldrev" -o -z "$newrev" ]; then + echo "usage: $0 " >&2 + exit 1 +fi + +# --- Config +allowunannotated=$(git config --bool hooks.allowunannotated) +allowdeletebranch=$(git config --bool hooks.allowdeletebranch) +denycreatebranch=$(git config --bool hooks.denycreatebranch) +allowdeletetag=$(git config --bool hooks.allowdeletetag) +allowmodifytag=$(git config --bool hooks.allowmodifytag) + +# check for no description +projectdesc=$(sed -e '1q' "$GIT_DIR/description") +case "$projectdesc" in +"Unnamed repository"* | "") + echo "*** Project description file hasn't been set" >&2 + exit 1 + ;; +esac + +# --- Check types +# if $newrev is 0000...0000, it's a commit to delete a ref. +zero="0000000000000000000000000000000000000000" +if [ "$newrev" = "$zero" ]; then + newrev_type=delete +else + newrev_type=$(git cat-file -t $newrev) +fi + +case "$refname","$newrev_type" in + refs/tags/*,commit) + # un-annotated tag + short_refname=${refname##refs/tags/} + if [ "$allowunannotated" != "true" ]; then + echo "*** The un-annotated tag, $short_refname, is not allowed in this repository" >&2 + echo "*** Use 'git tag [ -a | -s ]' for tags you want to propagate." >&2 + exit 1 + fi + ;; + refs/tags/*,delete) + # delete tag + if [ "$allowdeletetag" != "true" ]; then + echo "*** Deleting a tag is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/tags/*,tag) + # annotated tag + if [ "$allowmodifytag" != "true" ] && git rev-parse $refname > /dev/null 2>&1 + then + echo "*** Tag '$refname' already exists." >&2 + echo "*** Modifying a tag is not allowed in this repository." >&2 + exit 1 + fi + ;; + refs/heads/*,commit) + # branch + if [ "$oldrev" = "$zero" -a "$denycreatebranch" = "true" ]; then + echo "*** Creating a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/heads/*,delete) + # delete branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + refs/remotes/*,commit) + # tracking branch + ;; + refs/remotes/*,delete) + # delete tracking branch + if [ "$allowdeletebranch" != "true" ]; then + echo "*** Deleting a tracking branch is not allowed in this repository" >&2 + exit 1 + fi + ;; + *) + # Anything else (is there anything else?) + echo "*** Update hook: unknown type of update to ref $refname of type $newrev_type" >&2 + exit 1 + ;; +esac + +# --- Finished +exit 0 diff --git a/info/exclude b/info/exclude new file mode 100644 index 0000000000000000000000000000000000000000..a5196d1be8fb59edf8062bef36d3a602e0812139 --- /dev/null +++ b/info/exclude @@ -0,0 +1,6 @@ +# git ls-files --others --exclude-from=.git/info/exclude +# Lines that start with '#' are comments. +# For a project mostly in C, the following would be a good set of +# exclude patterns (uncomment them if you want to use them): +# *.[oa] +# *~ diff --git a/objects/02/d3c36bd6ea568da02e112930910794842d1081 b/objects/02/d3c36bd6ea568da02e112930910794842d1081 new file mode 100644 index 0000000000000000000000000000000000000000..71adb2608b7cc554e3acd96b6f8ad972fa8c41d4 --- /dev/null +++ b/objects/02/d3c36bd6ea568da02e112930910794842d1081 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1dce0b4afef802c03665334df70549d5cf0dacf6f29e7fd3026fa530ddec46c9 +size 12495888 diff --git a/objects/0e/4ada657439b94eb571b365f5330b08fcdf5374 b/objects/0e/4ada657439b94eb571b365f5330b08fcdf5374 new file mode 100644 index 0000000000000000000000000000000000000000..5c5e05ba660172a4ddc5af93718a615e2000b88d --- /dev/null +++ b/objects/0e/4ada657439b94eb571b365f5330b08fcdf5374 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:44be07f333e84bc2110409273663d2d730c232ce46ec958b43671093bf2e2e42 +size 239940713 diff --git a/objects/0e/8c3e126994d172b206c56520e1220910776441 b/objects/0e/8c3e126994d172b206c56520e1220910776441 new file mode 100644 index 0000000000000000000000000000000000000000..cf14d15f4d4efe94d34f61bf633d7a0fa8c81daa --- /dev/null +++ b/objects/0e/8c3e126994d172b206c56520e1220910776441 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a1c76933d2f07ed6db482b14c83e14620b53e07dad7e83760ef3feb3a0bdb491 +size 219564796 diff --git a/objects/10/dad8fec025bcf873dd9a6890bd458261295913 b/objects/10/dad8fec025bcf873dd9a6890bd458261295913 new file mode 100644 index 0000000000000000000000000000000000000000..40d666358b61bc7011d059d7eab0016c20328a26 --- /dev/null +++ b/objects/10/dad8fec025bcf873dd9a6890bd458261295913 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:72ebf1ee4cde696c5b5b0475642bf03581219c7c64c7a85c4c06f0876bbc2500 +size 12577469 diff --git a/objects/11/d279c1c328cb2299d5db6de96d5de4c5ead247 b/objects/11/d279c1c328cb2299d5db6de96d5de4c5ead247 new file mode 100644 index 0000000000000000000000000000000000000000..d0fd6e66c52b0cfa44aef8a79119c02d80fe79ef --- /dev/null +++ b/objects/11/d279c1c328cb2299d5db6de96d5de4c5ead247 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b37b6ad6caa1cc3f5d2d924c102261e045bc8dca5f49c4f7ba3ad27b1a794113 +size 239917026 diff --git a/objects/1a/93249ac8c4a5da1f071cb19ad0ee603ee8c64f b/objects/1a/93249ac8c4a5da1f071cb19ad0ee603ee8c64f new file mode 100644 index 0000000000000000000000000000000000000000..330bbc5742d07fba2783656a1309b3c5e29f47ad --- /dev/null +++ b/objects/1a/93249ac8c4a5da1f071cb19ad0ee603ee8c64f @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c027388e069083510affe9877803c17457455db9a2b9df21f23d8a9849fa5b3 +size 239935213 diff --git a/objects/22/9c23f1943fd09d6c3812e6e5bf876f7d8b2a04 b/objects/22/9c23f1943fd09d6c3812e6e5bf876f7d8b2a04 new file mode 100644 index 0000000000000000000000000000000000000000..e47c2b38faa40c14ead54937d5361cad7136a829 --- /dev/null +++ b/objects/22/9c23f1943fd09d6c3812e6e5bf876f7d8b2a04 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e5199f05fa4e94a6b316914fda944e9fdf2145c4706565ccfbb3aca48ca8fe84 +size 12496086 diff --git a/objects/22/a5299dd1eee4a0d3e354178b5a40c37233c611 b/objects/22/a5299dd1eee4a0d3e354178b5a40c37233c611 new file mode 100644 index 0000000000000000000000000000000000000000..4a7681ef9e4e060b34b5124d0d5cbb55bf9354a2 --- /dev/null +++ b/objects/22/a5299dd1eee4a0d3e354178b5a40c37233c611 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a26c6cbe0dd820dc8e30e2250e0cb704864eaa577a5012869babe05eb539e7f2 +size 12468873 diff --git a/objects/2a/9eb997b456d81120402e85ff67a30392a30dda b/objects/2a/9eb997b456d81120402e85ff67a30392a30dda new file mode 100644 index 0000000000000000000000000000000000000000..84dd4b76c99a897dabd56eec82d5017ff7ac1853 --- /dev/null +++ b/objects/2a/9eb997b456d81120402e85ff67a30392a30dda @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eca905a2b9fa87cbd42db480d20f9cae96b3c0aa96e76ed138329d8c3c337d3e +size 239936654 diff --git a/objects/3c/7a703b4a6d6e5f84e5cdf6970fba4e3d79b2d3 b/objects/3c/7a703b4a6d6e5f84e5cdf6970fba4e3d79b2d3 new file mode 100644 index 0000000000000000000000000000000000000000..5fffe6ae570b312e4f2571e3b73f7f335c3e774c --- /dev/null +++ b/objects/3c/7a703b4a6d6e5f84e5cdf6970fba4e3d79b2d3 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:826ec4b9a6e997674ec39b3096fb885c477ccbd5cd89520e7bf578eaa78a9149 +size 239870278 diff --git a/objects/4b/97bc166db5cfa0a8b93e5be006037ea1315b7b b/objects/4b/97bc166db5cfa0a8b93e5be006037ea1315b7b new file mode 100644 index 0000000000000000000000000000000000000000..00baedde478eb632cc3365653bfe55529f2463ec --- /dev/null +++ b/objects/4b/97bc166db5cfa0a8b93e5be006037ea1315b7b @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3a6f1ada683057d827138a25c32b344891250636458d47bd0cee1e8ce5e5484e +size 239873171 diff --git a/objects/5e/0149d4b2fc81dfabc7b73990265a276920e23c b/objects/5e/0149d4b2fc81dfabc7b73990265a276920e23c new file mode 100644 index 0000000000000000000000000000000000000000..5d4eb0278e8744c9b77abec61e3a8fc0e61ef4b7 --- /dev/null +++ b/objects/5e/0149d4b2fc81dfabc7b73990265a276920e23c @@ -0,0 +1,3 @@ +xN0 STF66^M],3ѡ;vu$m'Sk[/cVx(KyO|ՖC@*TH{8j|_-D]4s!zVBږִfD +Br<(V^}@챯H(Ӎ#L-DxB;xNj tV> тeDғD63k(Qv BИLzu~7C3 +1j^N.-e5p TJygpj;@gV#O|Рti1 \ No newline at end of file diff --git a/objects/69/58a6c838b5753b0d909626075fdb725dca4e3a b/objects/69/58a6c838b5753b0d909626075fdb725dca4e3a new file mode 100644 index 0000000000000000000000000000000000000000..ae3ec90fca6b9e2183be72f59c5ad4ba98db25f6 --- /dev/null +++ b/objects/69/58a6c838b5753b0d909626075fdb725dca4e3a @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0c894d5ef57c9792757411a5629b8aee238492a62be6a8c41723df77d8b40994 +size 239937125 diff --git a/objects/7d/e3cbf4315c2c307978e123f86b4b9daa3381df b/objects/7d/e3cbf4315c2c307978e123f86b4b9daa3381df new file mode 100644 index 0000000000000000000000000000000000000000..85570fb676181fe7a4c15b948bebe3ba134bee7f --- /dev/null +++ b/objects/7d/e3cbf4315c2c307978e123f86b4b9daa3381df @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e294a02784bdbd4519658a169e7a9942654005a356be164f443865d98b6e2ede +size 219622948 diff --git a/objects/8e/0b983f6a55400612d57b5d9d89d41f76891fe8 b/objects/8e/0b983f6a55400612d57b5d9d89d41f76891fe8 new file mode 100644 index 0000000000000000000000000000000000000000..5e014f2034a654af43c573c018c7fe2cf37eae13 --- /dev/null +++ b/objects/8e/0b983f6a55400612d57b5d9d89d41f76891fe8 @@ -0,0 +1 @@ +xn0 wݧ@6W*dQӤJB5:g'M9|J*[-,~'썂,[,71.yQiP },OߋZĤwPN$Īeöb!4eX͉񕆅^2ݢO\{uqD#mL;ʏ056'uvR.Ϡo-:yF(=I$o1k>X~Rhjl*:Odɟz/}W-mQY5QS>J]aV*ܢIA< M -ANU;Cw)ΕuG%ېㅤ