Bug 359986

Summary: Issue in Git Remote Prefix section in the build document
Product: [Developer tools] kdesrc-build Reporter: pgundlupetvenkatesh <pgundlupetvenkatesh>
Component: documentationAssignee: Michael Pyne <mpyne>
Status: RESOLVED WORKSFORME    
Severity: normal    
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
URL: https://community.kde.org/Frameworks/Building
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description pgundlupetvenkatesh 2016-03-02 07:48:23 UTC
OS: Ubuntu 15.10 x64
Product: KDevelop5

Within "Git remote prefix" section, to setup 'kde:' prefix for git command we have to add the following text to ~/.gitconfig file.

<syntaxhighlight lang="ini"> [url "git://anongit.kde.org/"]
  insteadOf = kde:
[url "ssh://git@git.kde.org/"]
  pushInsteadOf = kde:
</syntaxhighlight>

When saved the above text into .gitconfig file and executed "git clone kde:kdesrc-build extragear/utils/kdesrc-build" line in the terminal logging in as root user, error throws up saying

fatal: bad config file line 4 in /home/<user>/.gitconfig

when I remove the tags "<syntaxhighlight lang="ini">" and "</syntaxhighlight>" and run it again its clones.

Reproducible: Always

Steps to Reproduce:
1. Get all the above dependencies before coming to this step and install git.
2. within ~/.gitconfig file, paste the text as is said in the 'Git remote prefix' section and save the file.
3.  switch as root user and continue to the next section "Clone kdesrc-build"
4. "git clone kde:kdesrc-build extragear/utils/kdesrc-build" command will fail.

Actual Results:  
fatal: bad config file line 4 in /home/<user>/.gitconfig

Expected Results:  
Cloning into 'extragear/utils/kdesrc-build'...
remote: Counting objects: 6845, done.
remote: Compressing objects: 100% (2419/2419), done.
remote: Total 6845 (delta 4336), reused 6616 (delta 4194)
Receiving objects: 100% (6845/6845), 1.76 MiB | 380.00 KiB/s, done.
Resolving deltas: 100% (4336/4336), done.
Checking connectivity... done.

Removing tag <syntaxhighlight> in .gitconfig file cloned the kdesrc-build.
Comment 1 Michael Pyne 2016-03-23 02:32:04 UTC
Thank you for the bug report.

It was not intended for users to paste in the "<syntaxhighlight>" tags into their terminal. That tag is a markup tag used by KDE's Wiki pages. As far as I can tell you would have to view the source to the Wiki page linked from this bug to see any reference to "<syntaxhighlight>". If a previous version of the Wiki page had left a naked reference to the markup tag then it's already been fixed.