#!/usr/bin/env bash
#>*******************************************************
# THIS FILE WAS AUTO-GENERATED BY ATLASSIAN BITBUCKET.
# IT CONTAINS NO USER-SERVICEABLE PARTS.
#>*******************************************************
#
# Wrapper script to run git pack-objects command.
#

# If the callback is empty just execute the provided arguments
if [[ "$STASH_HOOK_CALLBACK" == "" ]]; then
    exec "$@"
# Otherwise execute the callback script using the arguments provided
elif [[ "$OSTYPE" == "cygwin" ]]; then
    exec $(cygpath $STASH_HOOK_CALLBACK) git-pack-objects "$@" <&0 >&1 2>&2
else
    exec $STASH_HOOK_CALLBACK git-pack-objects "$@" <&0 >&1 2>&2
fi