This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 196282 - Fetch fails when no remote is set
Summary: Fetch fails when no remote is set
Status: RESOLVED FIXED
Alias: None
Product: versioncontrol
Classification: Unclassified
Component: Git (show other bugs)
Version: 7.0
Hardware: All All
: P3 normal (vote)
Assignee: Ondrej Vrabec
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-04 10:01 UTC by Ondrej Vrabec
Modified: 2011-03-05 05:42 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ondrej Vrabec 2011-03-04 10:01:21 UTC
Product Version = NetBeans IDE Dev (Build 110209-5ba4a9a94526)
Operating System = Linux version 2.6.34.7-0.7-desktop running on amd64
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) 64-Bit Server VM 19.1-b02

1. Create a local folder.
2. Initialize the local repository.
3. Git->Fetch (url e.g.: git://kenai.com/netbeans-opengl-pack~glpack-git)
4. Then select the only remote branch "master"
5. Click on Finish, bump - error shows

The reason is that there's no remote set up yet. We need to either set up a remote, or continue with something like "origin"
Comment 1 Ondrej Vrabec 2011-03-04 10:29:50 UTC
In the meantime please edit the .git/config:
[core]
	repositoryformatversion = 0
	filemode = true
	logallrefupdates = true
	autocrlf = false

[remote "origin"]
	url = git://kenai.com/netbeans-opengl-pack~glpack-git

Note there *MUST* be an empty line at the end o the config file
Comment 2 Ondrej Vrabec 2011-03-04 10:56:02 UTC
fix: http://hg.netbeans.org/core-main/rev/8ce1b6351faf
Comment 3 Peter Nabbefeld 2011-03-04 11:25:10 UTC
Thanks for the quick fix!
Comment 4 Quality Engineering 2011-03-05 05:42:10 UTC
Integrated into 'main-golden', will be available in build *201103050000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/8ce1b6351faf
User: Ondrej Vrabec <ovrabec@netbeans.org>
Log: fetch into origin when setting a specific URI
Issue #196282 - Fetch fails when no remote is set