Giter Site home page Giter Site logo

Allow pull with --force about vim-plug HOT 5 OPEN

spapanik avatar spapanik commented on August 19, 2024
Allow pull with --force

from vim-plug.

Comments (5)

junegunn avatar junegunn commented on August 19, 2024 1

Thanks for the clarification. I think this is a very rare case; an unorthodox use of tags (they should be maintaining stable branch instead) combined with a non-default global git option of yours.

vim-plug has been extremely stable and is not expected to change much in the near future, so I suggest that you add --force to your local copy of plug.vim, instead we add an option that few people will use.

from vim-plug.

junegunn avatar junegunn commented on August 19, 2024

As there are plugins that clobber the latest or stable or similar tags, they fail at update (for example catppuccin/nvim).

It's not clear why they fail to update. Can you be more specific? You're not specifying the tag in the Plug command, so they shouldn't affect the git pull process.

from vim-plug.

spapanik avatar spapanik commented on August 19, 2024

My global git configuration automatically pulls and prunes tags, which is the configuration that makes sense for the repos that I'm working with.

I found an installation that I haven't manually force pulled catpuccin. This is the error I'm getting:

x catppuccin:
    From https://github.com/catppuccin/nvim
     ! [rejected]        stable     -> stable  (would clobber existing tag)

When I go to ~/.local/share/nvim/plugged/catppuccin and I delete the offending tag, it updates fine.

from vim-plug.

junegunn avatar junegunn commented on August 19, 2024

My global git configuration automatically pulls and prunes tags

Can you show me the config?

from vim-plug.

spapanik avatar spapanik commented on August 19, 2024

The two parts in the config are:

[remote "origin"]
    tagOpt = --tags
[fetch]
    pruneTags = true

from vim-plug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.