Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 409794 Details for
Bug 558374
git-2 eclass doesn't properly handle nonbare repos that rebase
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to add an EGIT_FORCE_FETCH_UPDATE variable
git-2.patch (text/plain), 1.08 KB, created by
James Ausmus
on 2015-08-22 00:30:37 UTC
(
hide
)
Description:
Patch to add an EGIT_FORCE_FETCH_UPDATE variable
Filename:
MIME Type:
Creator:
James Ausmus
Created:
2015-08-22 00:30:37 UTC
Size:
1.08 KB
patch
obsolete
>diff --git a/eclass/git-2.eclass b/eclass/git-2.eclass >index eae6ba1..05f644e 100644 >--- a/eclass/git-2.eclass >+++ b/eclass/git-2.eclass >@@ -119,6 +119,14 @@ DEPEND="dev-vcs/git" > # non bare repositories. This is useful if you can't operate with bare > # checkouts for some reason. > >+# @ECLASS-VARIABLE: EGIT_FORCE_FETCH_UPDATE >+# @DEFAULT_UNSET >+# @DESCRIPTION: >+# If non-empty this variable forces the git update repo to use git fetch >+# no matter the repo type (bare/non bare). This is useful if you are using >+# a non bare repo and the remote tends to rebase the tracked branch with >+# conflicting commits, as git pull doesn't handle that situation gracefully. >+ > # @ECLASS-VARIABLE: EGIT_NOUNPACK > # @DEFAULT_UNSET > # @DESCRIPTION: >@@ -536,7 +544,7 @@ git-2_migrate_repository() { > fi > > # set various options to work with both targets >- if [[ ${bare} ]]; then >+ if [[ ${bare} || -n ${EGIT_FORCE_FETCH_UPDATE} ]]; then > debug-print "${FUNCNAME}: working in bare repository for \"${EGIT_DIR}\"" > EGIT_LOCAL_OPTIONS+="${EGIT_OPTIONS} --bare" > MOVE_COMMAND="git clone -l -s -n ${EGIT_DIR// /\\ }"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 558374
: 409794