Jump to content

Help applying patch


Recommended Posts

Posted

I am trying to apply a patch under the new git system using Msysgit for windows. I received the latest build fine, but patching I get an error.

admin@LSN-D1724 ~

$ git clone git://github.com/mangos/mangos.git

Initialize mangos/.git

Initialized empty Git repository in C:/Documents and Settings/admin/mangos/.git

remote: Counting objects: 4471, done.←[K

remote: Compressing objects: 100% (3520/3520), done.←[K

remote: Total 4471 (delta 1486), reused 3747 (delta 905)←[K

Receiving objects: 100% (4471/4471), 14.70 MiB | 408 KiB/s, done.

Resolving deltas: 100% (1486/1486), done.

admin@LSN-D1724 ~

$ git am arena.patch

fatal: Not a git repository

admin@LSN-D1724 ~

$

Posted

hmm little question with patch adding ..

i need to move patch to source files foler named .git?

if not can anyone give me example were i have to move the patch file and what command i have to run...git is so confusing ..thanks

Posted
hmm little question with patch adding ..

i need to move patch to source files foler named .git?

if not can anyone give me example were i have to move the patch file and what command i have to run...git is so confusing ..thanks

Patches should go in the root of your source folder. For example:

/home/mangos/source/

Put it into source. Then run the patch command and all should be well :)

  • 4 weeks later...
Posted

I have tried the git apply and it says no such file or directory.

What are the commands to patch mangos with the jail.patch and

set starting money from config.patch or the ahbot.patch

With svn this was fast and easy. Now you can't patch mangos git with svn.

At this point I would like to roll back to the old way and stop staying up with the latest. git is just a pain. There should be a guide to git with all the commands and examples to use them.

Posted
I have tried the git apply and it says no such file or directory.

What are the commands to patch mangos with the jail.patch and

set starting money from config.patch or the ahbot.patch

With svn this was fast and easy. Now you can't patch mangos git with svn.

At this point I would like to roll back to the old way and stop staying up with the latest. git is just a pain. There should be a guide to git with all the commands and examples to use them.

1) There are tons of examples, use search

2) You need to understand path specification (like ".." is one directory back, "directory1/directory2/file.txt" and so on ... Windows Explorer uses silimar style, with backslashes however.

If you get this, there's pretty no way to don't understand what to do.

Posted

admin@LSN-D1724 ~

$ git clone git://github.com/mangos/mangos.git

Initialize mangos/.git

Initialized empty Git repository in C:/Documents and Settings/admin/mangos/.git

remote: Counting objects: 4471, done.←[K

remote: Compressing objects: 100% (3520/3520), done.←[K

remote: Total 4471 (delta 1486), reused 3747 (delta 905)←[K

Receiving objects: 100% (4471/4471), 14.70 MiB | 408 KiB/s, done.

Resolving deltas: 100% (1486/1486), done.

admin@LSN-D1724 ~

$ git am arena.patch

fatal: Not a git repository

admin@LSN-D1724 ~

$

You are cloning the mangos repo, but not going into the actual folder you cloned into.

so it should be:

$ git clone git://github.com/mangos/mangos.git
(it does its thing)
$ cd mangos 
$ git am <path/to/file/patch.patch>

edit; I guess I should read all the replies before going through all that... answered twice :(

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use