mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-12-01 00:48:18 +00:00
do-rebase: add more options to not depend on the user git configuration
The patches generated by do-rebase depend on the user having core.abbrv=11 in their .gitconfig and also a diff.orderFile set. These assumptions were removed for the git format-patch command by passing all the configuration as options, but it was still present for git diff. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
This commit is contained in:
parent
db4a99687c
commit
682540cbf5
1 changed files with 4 additions and 2 deletions
|
@ -6,7 +6,8 @@ shopt -qs expand_aliases
|
||||||
export LC_COLLATE=C
|
export LC_COLLATE=C
|
||||||
export LC_ALL=C
|
export LC_ALL=C
|
||||||
|
|
||||||
format_patch_ops="--zero-commit --no-signature --no-numbered --stat=80 --summary -O.git.diff.order --patience -l0"
|
diff_ops="-O.git.diff.order --patience -l0"
|
||||||
|
format_patch_ops="--zero-commit --no-signature --no-numbered --stat=80 --summary $diff_ops"
|
||||||
alias othergit="GIT_DIR=$PWD/.rhboot.git GIT_WORK_TREE=$PWD git"
|
alias othergit="GIT_DIR=$PWD/.rhboot.git GIT_WORK_TREE=$PWD git"
|
||||||
alias formatpatch="othergit format-patch $format_patch_ops"
|
alias formatpatch="othergit format-patch $format_patch_ops"
|
||||||
|
|
||||||
|
@ -126,6 +127,7 @@ fi
|
||||||
|
|
||||||
if [ ! -d $PWD/.rhboot.git ]; then
|
if [ ! -d $PWD/.rhboot.git ]; then
|
||||||
othergit init
|
othergit init
|
||||||
|
othergit config core.abbrev 11
|
||||||
if ! othergit remote add \
|
if ! othergit remote add \
|
||||||
rhboot $gitrepo \
|
rhboot $gitrepo \
|
||||||
>/dev/null 2>&1 ; then
|
>/dev/null 2>&1 ; then
|
||||||
|
@ -154,7 +156,7 @@ unset LC_ALL
|
||||||
git rm -q 0*.patch
|
git rm -q 0*.patch
|
||||||
|
|
||||||
> release-to-master.patch
|
> release-to-master.patch
|
||||||
othergit diff --full-index --binary grub-2.02..refs/remotes/rhboot/master > release-to-master.patch
|
othergit diff --full-index --binary $diff_ops grub-2.02..refs/remotes/rhboot/master > release-to-master.patch
|
||||||
git add release-to-master.patch
|
git add release-to-master.patch
|
||||||
|
|
||||||
> grub.patches
|
> grub.patches
|
||||||
|
|
Loading…
Reference in a new issue