![]() | |
|---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm003.cluster110.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/gcc-12.2.0/contrib/ drwxr-xr-x | |
| Viewing file: Select action/file-type: #! /bin/sh -e
# Create a new upstream user branch.
# Usage:
# contrib/git-add-user-branch.sh [<personal-prefix>/]<branch-name> <base>
usage ()
{
echo "Usage:"
echo " $0 [<personal-prefix>/]<branch-name> <start-point>"
echo
echo "personal space must already have been set up using"
echo "contrib/gcc-git-customization.sh"
exit 1
}
if [ $# != 2 ]
then
usage
fi
userpfx=$(git config --get "gcc-config.userpfx")
user=$(git config --get "gcc-config.user")
if [ -z "$userpfx" -o -z "$user" ]
then
usage
fi
branch=$(echo "$1" | sed -r "s:(${userpfx}/)?(.*)$:\2:")
start=$2
# Sanity check the new branch argument. If there is no '/', then the
# vendor will be the same as the entire first argument.
if [ -z "$branch" ]
then
usage
fi
git push users/${userpfx} ${start}:refs/users/${user}/heads/${branch}
git fetch -q users/${userpfx}
git branch ${userpfx}/${branch} remotes/users/${userpfx}/${branch}
echo "You are now ready to check out ${userpfx}/${branch}"
echo "To push the branch upstream use:"
echo " git push users/${userpfx} ${userpfx}/${branch}"
|
Useful Commands
|
|
Php Safe-Mode Bypass (Read Files)
|
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0053 ]-- |