Jump to content

Help applying patch


Guest Stabatha
 Share

Recommended Posts

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.

[email protected] ~

$ 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.

[email protected] ~

$ git am arena.patch

fatal: Not a git repository

[email protected] ~

$

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

  • 4 weeks later...

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

[email protected] ~

$ 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.

[email protected] ~

$ git am arena.patch

fatal: Not a git repository

[email protected] ~

$

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 :(

Link to comment
Share on other sites

 Share

×
×
  • 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