Re: git-pull-script on my linus tree fails..

From: Linus Torvalds (torvalds_at_osdl.org)
Date: 06/21/05

  • Next message: Lee Revell: "Re: Bug in pcmcia-core"
    Date:	Tue, 21 Jun 2005 08:39:48 -0700 (PDT)
    To: Dave Airlie <airlied@linux.ie>
    
    

    On Tue, 21 Jun 2005, Dave Airlie wrote:
    >
    > fatal: Entry 'Documentation/DocBook/scsidrivers.tmpl' would be overwritten
    > by merge. Cannot merge.
    >
    > but I haven't touched that tree so I shouldn't get merge issues..
    >
    > whatsup?

    The most common issue is that your index is not in sync. For many
    operations, that's just goign to slow things down a lot (ie a diff migth
    take a long time instead of being instantaneous), but for a merge it's
    considered an error.

    Does "git-diff-files -p" show any output? That's a dead give-away.

    Do "git-update-cache --refresh" to make sure your index file matches your
    working directory.

    I guess I can make the "git pull" script do that automatically (some other
    scripts do, like "git commit", which also depends on having an up-to-date
    index).

                    Linus
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/


  • Next message: Lee Revell: "Re: Bug in pcmcia-core"

    Relevant Pages

    • Re: [PATCH TRIVIAL] Add Intel IXP2400 & IXP2800 to PCI.ids
      ... >> This could be trivially automated to have a script ... > gregkh pulls this into his pci tree every so often, ... Do we have a way for patches to flow back into sf.net. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Git-commits mailing list feed.
      ... > Here is an updated version of the script, working with paskys latest ... > tree. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [doc][git] playing with git, and netdev/libata-dev trees
      ... I copy the attached script into each repo, ... > When I publish the tree, I just cd to the toplevel dir on my local ... > process is still quite raw in git. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: Kernel SCM saga..
      ... this cherry-picking can generally be scripted and done ... > from one tree and applies it to the other). ... but that's precisely what the script ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: HELP: GIT Cloning failed
      ... Is there a reason that you regularly delete and re-download the entire repository, rather than simply doing a git pull to update your existing clone? ... In the script, ...
      (Linux-Kernel)