No tracking information for current branch

question

#1

I build a package using PkgTemplates.jl, and everything was fine, until I couldn’t Pkg.update() without the following error:

julia> Pkg.update("BeetleWay")
INFO: Updating METADATA...
INFO: Computing changes...
INFO: No packages to install, update or remove
ERROR: Update finished with errors.
=> Package BeetleWay cannot be updated.
GitError(Code:ERROR, Class:Merge, There is no tracking information for the current branch.)

I’m on master:

$ git status
On branch master
nothing to commit, working tree clean

and my .git/config file is:

[core]
	bare = false
	repositoryformatversion = 0
	filemode = true
	logallrefupdates = true
[remote "origin"]
	url = git@github.com:yakir12/BeetleWay.jl.git
	pushurl = git@github.com:yakir12/BeetleWay.jl.git
[branch "master"]
	remote = origin
	merge = refs/heads/master

Does anyone git-savy know what I’m supposed to do?


#2

not exactly, but i think you’re missing the upstream (see git branch --set-upstream) information for fetch/merge.
I have (for a similar setup, local package/github as remote) an additional line

[remote "origin"]
        url = https://github.com/lobingera/L1Dummy.git
        fetch = +refs/heads/*:refs/remotes/origin/*
        pushurl = git@github.com:lobingera/L1Dummy.git

#3

Perfect! Thanks!!!