Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 577874 - git-2.eclass: git pull: error: unknown switch `u'
Summary: git-2.eclass: git pull: error: unknown switch `u'
Status: RESOLVED DUPLICATE of bug 576156
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Donnie Berkholz (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-20 20:56 UTC by Alex D.
Modified: 2016-04-13 14:38 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
output of `emerge -d =dev-util/monodevelop-9999` command (emerge_error.txt,226.97 KB, text/plain)
2016-03-20 20:56 UTC, Alex D.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex D. 2016-03-20 20:56:20 UTC
Created attachment 428680 [details]
output of `emerge -d =dev-util/monodevelop-9999` command

It seems that incorrect command line switch is used while trying to emerge dev-util/monodevelop-9999.

I've resolved this problem by applying this simple modification:


i7-970 eclass # diff -ru git-2.eclass git-2.eclass.new 
--- git-2.eclass        2016-03-20 23:44:22.119115641 +0300
+++ git-2.eclass.new    2016-03-20 23:52:45.398766102 +0300
@@ -551,7 +551,7 @@
                debug-print "${FUNCNAME}: working in bare repository for non-bare \"${EGIT_DIR}\""
                MOVE_COMMAND="cp -pPR ."
                EGIT_LOCAL_OPTIONS="${EGIT_OPTIONS}"
-               EGIT_UPDATE_CMD="git pull -f -u ${EGIT_OPTIONS}"
+               EGIT_UPDATE_CMD="git pull -f ${EGIT_OPTIONS}"
                UPSTREAM_BRANCH="origin/${EGIT_BRANCH}"
                EGIT_LOCAL_NONBARE="true"
        fi
i7-970 eclass # 

P.S. dev-util/monodevelop-9999 is a part of "dotnet" overlay added via Layman,
Comment 1 Hadrien Lacour 2016-04-12 09:59:28 UTC
Had the same problem with a morituri-9999 ebuild. Thanks for the fix.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2016-04-13 14:38:16 UTC

*** This bug has been marked as a duplicate of bug 576156 ***