Skip to content

Instantly share code, notes, and snippets.

@kenichi
Created November 13, 2012 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kenichi/4067944 to your computer and use it in GitHub Desktop.
Save kenichi/4067944 to your computer and use it in GitHub Desktop.
how do i get an upstream-added submodule?

upstream added vim-less to .gitmodules...

$ cat .gitmodules 
[submodule ".vim/bundle/vim-handlebars"]
	path = .vim/bundle/vim-handlebars
	url = git://github.com/nono/vim-handlebars.git
[submodule ".vim/bundle/nerdtree"]
	path = .vim/bundle/nerdtree
	url = https://github.com/scrooloose/nerdtree.git
[submodule ".vim/bundle/tagbar"]
	path = .vim/bundle/tagbar
	url = https://github.com/majutsushi/tagbar.git
[submodule ".vim/bundle/vim-coffee-script"]
	path = .vim/bundle/vim-coffee-script
	url = https://github.com/kchmck/vim-coffee-script.git
[submodule ".vim/bundle/vim-colors-solarized"]
	path = .vim/bundle/vim-colors-solarized
	url = git://github.com/altercation/vim-colors-solarized.git
[submodule ".vim/bundle/vim-fugitive"]
	path = .vim/bundle/vim-fugitive
	url = git://github.com/tpope/vim-fugitive.git
[submodule ".vim/bundle/vim-markdown"]
	path = .vim/bundle/vim-markdown
	url = https://github.com/tpope/vim-markdown.git
[submodule ".vim/bundle/vim-powerline"]
	path = .vim/bundle/vim-powerline
	url = https://github.com/Lokaltog/vim-powerline.git
[submodule ".vim/bundle/vim-rails"]
	path = .vim/bundle/vim-rails
	url = https://github.com/tpope/vim-rails.git
[submodule ".vim/bundle/vim-surround"]
	path = .vim/bundle/vim-surround
	url = git://github.com/tpope/vim-surround.git
[submodule ".vim/bundle/zencoding-vim"]
	path = .vim/bundle/zencoding-vim
	url = https://github.com/mattn/zencoding-vim.git
[submodule ".vim/bundle/vim-less"]
	path = .vim/bundle/vim-less
	url = https://github.com/groenewege/vim-less.git

that last one vim-less is the one! but.. alas!

$ git submodule init
Submodule '.vim/bundle/nerdtree' () registered for path '.vim/bundle/nerdtree'
Submodule '.vim/bundle/tagbar' () registered for path '.vim/bundle/tagbar'
Submodule '.vim/bundle/vim-coffee-script' () registered for path '.vim/bundle/vim-coffee-script'
Submodule '.vim/bundle/vim-colors-solarized' () registered for path '.vim/bundle/vim-colors-solarized'
Submodule '.vim/bundle/vim-fugitive' () registered for path '.vim/bundle/vim-fugitive'
Submodule '.vim/bundle/vim-handlebars' () registered for path '.vim/bundle/vim-handlebars'
Submodule '.vim/bundle/vim-markdown' () registered for path '.vim/bundle/vim-markdown'
Submodule '.vim/bundle/vim-powerline' () registered for path '.vim/bundle/vim-powerline'
Submodule '.vim/bundle/vim-rails' () registered for path '.vim/bundle/vim-rails'
Submodule '.vim/bundle/vim-surround' () registered for path '.vim/bundle/vim-surround'
Submodule '.vim/bundle/zencoding-vim' () registered for path '.vim/bundle/zencoding-vim'

wat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment