[Bug 812941] New: osc service run fails when using tar_scm with git and german (maybe others too) localization
https://bugzilla.novell.com/show_bug.cgi?id=812941 https://bugzilla.novell.com/show_bug.cgi?id=812941#c0 Summary: osc service run fails when using tar_scm with git and german (maybe others too) localization Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Development AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: frank@samaxi.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0
cat /etc/SuSE-release openSUSE 12.3 (x86_64) VERSION = 12.3 CODENAME = Dartmouth
rpm -qa|grep scm obs-service-tar_scm-0.2.3-62.1.noarch
rpm -qi obs-service-tar_scm-0.2.3-62.1.noarch Name : obs-service-tar_scm Version : 0.2.3 Release : 62.1 Architecture: noarch Install Date: Mo 25 Mär 2013 23:44:29 CET Group : Development/Tools/Building Size : 14543 License : GPL-2.0+ Signature : DSA/SHA1, Do 07 Feb 2013 15:41:01 CET, Key ID 85753aa5eefefde9 Source RPM : obs-service-tar_scm-0.2.3-62.1.src.rpm Build Date : Do 07 Feb 2013 15:40:51 CET Build Host : build34 Relocations : (not relocatable) Vendor : obs://build.opensuse.org/openSUSE:Tools URL : https://github.com/openSUSE/obs-service-tar_scm Summary : An OBS source service: checkout or update a tar ball from svn/git/hg Description : This is a source service for openSUSE Build Service.
It supports downloading from svn, git, hg and bzr repositories. Distribution: openSUSE:Tools / openSUSE_12.3 Reproducible: Always Steps to Reproduce: 1. Create a localized user profile or simply install machine in your localization (in my case german) 2. configure a _service for a git repository where config must lead to a checkout in "detached HEAD" 3. osc service run Actual Results: xxx@XXX:~/myrepo/mypackage> osc service run Fetching from git://git.xxx.lab/myGitRepo ... Klone nach 'myGitRepo'... remote: Counting objects: 98386, done. remote: Compressing objects: 100% (27803/27803), done. remote: Total 98386 (delta 68332), reused 98072 (delta 68069) Empfange Objekte: 100% (98386/98386), 262.24 MiB | 20.17 MiB/s, done. Löse Unterschiede auf: 100% (68332/68332), done. Note: checking out 'origin/myMerge'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name Zweigspitze (HEAD) ist jetzt bei 83b0f65... [TASK] my commit message ... You are not currently on a branch. Please specify which branch you want to merge with. See git-pull(1) for details. git pull <remote> <branch> ERROR: git pull failed; aborting! Aborting: service call failed: ... ... Expected Results: xxx@XXX:~/myrepo/mypackage> osc service run Fetching from git://git.xxx.lab/... Klone nach 'myGitRepo'... remote: Counting objects: 98386, done. remote: Compressing objects: 100% (27803/27803), done. remote: Total 98386 (delta 68332), reused 98072 (delta 68069) Empfange Objekte: 100% (98386/98386), 262.24 MiB | 9.73 MiB/s, done. Löse Unterschiede auf: 100% (68332/68332), done. Checking out files: 100% (343/343), done. Note: checking out 'origin/myMerge'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example: git checkout -b new_branch_name Zweigspitze (HEAD) ist jetzt bei 83b0f65... [TASK] my commit message origin/cgnMerge does not refer to a branch, not attempting git pull Created myGitRepo-1.1.0.tar Compressed _service:tar_scm:myGitRepo-1.1.0.tar to tar_scm:myGitRepo-1.1.0.tar.bz2 my ugly workaround: diff --git a/tar_scm b/tar_scm index 18b6887..e515bc8 100644 --- a/tar_scm +++ b/tar_scm @@ -351,7 +351,7 @@ switch_to_revision () { safe_run git fetch "$MYURL" "+$MYREVISION:$MYREVISION" safe_run git checkout "$MYREVISION" fi - if git branch | grep -q '^\* (no branch)$'; then + if LANG=C git branch | grep -q '^\* (no branch)$'; then echo "$MYREVISION does not refer to a branch, not attempting git pull" else safe_run git pull -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=812941 https://bugzilla.novell.com/show_bug.cgi?id=812941#c FeiXiang Zhang <fxzhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team-screening@forge.pr |suse-tux@gmx.de |ovo.novell.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com