Modul letöltése a drupal.org-ról gittel, és git submodule-ként kezelése

  • GeSHi library error: sites/all/modules/geshifilter/geshi is not a directory.
  • The spam filter installed on this site is currently unavailable. Per site policy, we are unable to accept new submissions until that problem is resolved. Please try resubmitting the form in a couple of minutes.
Kategória: 
Leírás

Néhány napja harcolok csak a gittel, egy a tuti: igencsak kezdem megkedvelni. Mivel még drupalosok körében is elég képlékeny a workflow, amivel teljes drupal projecteket lehet kezelni, így én is több forrás alapján, nagyjából így csinálom:

A drupal a main repository. Nincsenek külön branchek modul, meg smink, inicializálás után egy szem devel ág, és abba megy a fejlesztés fő vonala. Ha egy részfeladat szépen leírható, (pl user_interface, ahol a wysiwyg-t, filtereket alakítom), akkor lesz egy külön branch neki. Ha az megvan, szépen visszamergelem a devel ágba, és haladok tovább. Ha van már mit mutatni, akkor a devel ág merge a masterbe, és megy ki valami public oldalra, ahol nézegethetik.

Nade pont most vagyok olyan munkában, ahol igencsak bántani kell a modulokat, patchek, próbálkozások etc.
A modulokat alapból letöltöm drush-sal, hozzáadom, majd commitolom az adott ágba.
Egészen addig, amíg a modulba bele nem kell nyúlni. Na ekkor jön képbe a git submodule rendszere.

Ilyenkor törlöm a modult, és submoduleként kezelem tovább. Na ez elég pepecselős mutatvány, sok gépeléssel, úgyhogy ennek kiváltására megalkottam subát! Ő egy git alias, amit a .gitconfig nevű fileba kell elhelyezni imígyen:

[geshifilter-code] [alias] suba = !sh -c 'echo -n \"Biztosan törölhető a $2 könyvtár? (i/n) \" && read answer && [ $answer = \"i\" ] || exit && echo \"\n $2 könyvtár törlése \n \" && rm -rf --preserve-root $2 && echo \"\nIndex törlése\n\" && git commit $2 -m \"Autocommit from suba: remove $2 dir from index\" && echo \"\nSubmodule hozzáadása\n\" && git submodule add -b $1 git://git.drupal.org/project/$0 $2 && echo \"\nSubmodule inicializálása\" && git submodule init && echo \"\nSubmodule commit\n\" && git add .gitmodules && git commit $2 .gitmodules -m \"Autocommit from suba: Add $0 drupal project as submodule tracking remote branch: $1.\"' [/geshifilter-code]

Használata a következő: git suba devel 6.x-2.x sites/all/modules/devel

Az első paraméter a modul neve, a második a drupal branch. Ez elvileg lehet tag is, vagyis ha 6.x.2.3-at írunk be, akkor akár a releaset is leszedhetjük vele, viszont releasebe meg nem turkálunk, úgyhogy jöjjön csak a branch egészében. A 3. paraméter meg a hely, ahová a modulunkat szeretnénk pakolni.
Ezt a drupal főkönyvtárában kell indítani, vagyis a repo főkönyvtárába, mert csak ott lehet submodulet hozzáadni. A 3. paraméterben ne legyen a végén / jel, mert attól az uccsó commit meghal.

Először szépen rákérdez, hogy tuti jót akarunk-e törölni. Ezután törli a könyvtárat, majd commitolja, enélkül ugyanis a git submodule add összeakad, hiszen a git indexében már szerepel a könyvtár. Ezután leszedi a drupal.org-ról a modult, beállítja a local branchet arra, amit a második paraméterként megadtunk, majd elcommitolja. A git add .gitmodules elvileg csak az első alkalommal kell, amikor submodule-t adunk hozzá, de ahogy észrevettem enni nem kér, szóval nincs gond, ha benne marad.

Na, és miután az első ilyen próbálkozásomról kiderült, hogy görcs nélkül tudtam volna törölni vele bármit kérdés nélkül, valamint mindössze 4 napja használom a gitet, léccci kapjátok le a fejemet, ha valami ordenáré hülyeséget írnék!

Hozzászólások

I've been surfing online more

I've been surfing online more than three hours today, yet I never found any interesting article like yours. It is pretty worth enough for me. In my view, if all website owners and bloggers made good content as you did, the web will be a lot more useful than ever before.|

My brother recommended I

My brother recommended I might like this blog. He was entirely right. This post actually made my day. You cann't imagine just how much time I had spent for this info! Thanks!|

In addition to that, you can

In addition to that, you can take pleasure in some of our Cost-free Daybreak Breakfast, interior passages and also a secure interacting with habitat situated in this vestibule.

Numerous totally different

Numerous totally different settings contain Musou option, demo style, along with vs ..

Taxi moto line 128 Rue la

Taxi moto line
128 Rue la Boétie
75008 Paris
+33 6 51 612 712  

Taxi moto paris

I don't even know how I ended up here, but I thought this post was good.
I don't know who you are but definitely you're going to
a famous blogger if you are not already ;) Cheers!

A fabulous decided claim

A fabulous decided claim suitable to New york, pragmatically talking, could possibly have these characteristics.

The more soft sand an

The more soft sand an important earth is actually, the simpler it's for any of the things to help make served by the idea.

M.E.C Mon Electricien

M.E.C Mon Electricien Catalan
44 Rue Henry de Turenne
66100 Perpignan
0651212596

Electricien Perpignan

I must thank you for the efforts you've put in penning this site.
I am hoping to check out the same high-grade content from you in the future as well.
In truth, your creative writing abilities has inspired me to get my own website now
;)

The guy has been increase

The guy has been increase belief found in other parts but yet your dog could not pretty contend with relatives.

Inspiring story there. What

Inspiring story there. What happened after? Thanks!|

Independance Immobilière -

Independance Immobilière - Agence Dakar Sénégal
Av. Fadiga, Immeuble Lahad Mbacké
BP 2975 Dakar
+221 33 823 39 30

Agence Immobilière Dakar

You actually make it seem really easy with your presentation however
I to find this topic to be really one thing that I believe
I would by no means understand. It sort of feels too
complicated and very extensive for me. I'm taking a look ahead for your next submit,
I will attempt to get the cling of it!

My brother suggested I may

My brother suggested I may like this blog. He was totally right.
This submit truly made my day. You can not believe just how a lot time
I had spent for this information! Thanks!

I every time spent my half an

I every time spent my half an hour to read this website's content every day along with a mug of
coffee.

I am curious to find out what

I am curious to find out what blog system you are using?
I'm having some small security issues with my latest
website and I would like to find something more
safeguarded. Do you have any solutions?

Keep this going please, great

Keep this going please, great job!

Hello i am kavin, its my

Hello i am kavin, its my first time to commenting anywhere, when i read this paragraph
i thought i could also create comment due to this brilliant article.

whoah this blog is

whoah this blog is magnificent i love studying your posts.
Keep up the good work! You recognize, lots of persons are
searching round for this information, you could aid them greatly.

It's amazing to pay a quick

It's amazing to pay a quick visit this website and reading the
views of all colleagues about this post, while I am also
keen of getting knowledge.

WOW just what I was looking

WOW just what I was looking for. Came here by searching for http://maps.google.co.jp

It's not my first time to pay

It's not my first time to pay a quick visit this site, i am browsing this site dailly
and take nice information from here all the time.

Good day! I know this is

Good day! I know this is kinda off topic however , I'd figured I'd
ask. Would you be interested in exchanging links
or maybe guest authoring a blog article or vice-versa?
My blog covers a lot of the same topics as yours and I
believe we could greatly benefit from each other. If you are interested feel free to shoot me an email.
I look forward to hearing from you! Terrific blog by the way!

An impressive share! I have

An impressive share! I have just forwarded this onto a
colleague who was conducting a little research on this.
And he actually bought me breakfast due to the fact that I stumbled upon it for him...

lol. So let me reword this.... Thank YOU for the meal!!
But yeah, thanx for spending some time to talk about this topic here on your web page.

you are in reality a good

you are in reality a good webmaster. The website loading pace is amazing.

It sort of feels that you're doing any distinctive
trick. Also, The contents are masterwork. you have performed
a excellent task in this matter!

Hi! Do you know if they make

Hi! Do you know if they make any plugins to assist with SEO?
I'm trying to get my blog to rank for some targeted
keywords but I'm not seeing very good results. If you know of any please share.
Cheers!

Hey there! I'm at work

Hey there! I'm at work browsing your blog from my new iphone 3gs! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the outstanding work!|

Fantastic beat ! I would like

Fantastic beat ! I would like to apprentice whilst
you amend your web site, how could i subscribe for a
blog web site? The account aided me a acceptable deal.
I had been tiny bit familiar of this your broadcast offered shiny transparent
idea

Definitely believe that which

Definitely believe that which you said. Your favorite justification appeared to be on the web the
simplest thing to be aware of. I say to you, I definitely get irked while people think about worries that they just don't know
about. You managed to hit the nail upon the top and defined out the whole thing
without having side effect , people could take a signal.

Will likely be back to get more. Thanks

you are in point of fact a

you are in point of fact a good webmaster.
The site loading speed is incredible. It seems that you're doing any distinctive trick.
In addition, The contents are masterwork. you've performed a
magnificent activity in this subject!

After looking into a few of

After looking into a few of the blog articles on your web page, I seriously appreciate your way of writing a blog. I saved as a favorite it to my bookmark webpage list and will be checking back in the near future. Please visit my web site too and let me know your opinion.|

Hi there to all, the contents

Hi there to all, the contents present at this website
are really amazing for people experience, well, keep up the nice work fellows.

It's very simple to find out

It's very simple to find out any matter on net as compared to books, as I found this paragraph
at this web page.

You need to take part in a

You need to take part in a contest for one of the greatest websites on the web.
I am going to highly recommend this web site!

I've learn several good stuff

I've learn several good stuff here. Certainly value bookmarking for revisiting.
I surprise how a lot effort you set to create one of these
wonderful informative website.

Willie G youllied Greate

Willie G youllied

Greate article. Keep posting such kind of info on your blog.
Im really impressed by your site.
Hey there, You've done an incredible job. I will certainly digg it and personally recommend to my friends.
I'm confident they'll be benefited from this site.

I couldn't resist commenting.

I couldn't resist commenting. Well written!

Thanks for the marvelous

Thanks for the marvelous posting! I definitely enjoyed
reading it, you are a great author.I will make certain to bookmark your blog and will often come back down the road.
I want to encourage you continue your great work, have a nice day!

With havin so much content

With havin so much content and articles do you ever run into any issues of plagorism or copyright infringement?
My website has a lot of completely unique content I've either authored myself or outsourced but it seems
a lot of it is popping it up all over the internet without my authorization. Do you know any techniques to
help protect against content from being stolen? I'd really appreciate it.

Howdy are using Wordpress for

Howdy are using Wordpress for your blog platform? I'm new to the blog world but I'm trying
to get started and create my own. Do you require any html coding
knowledge to make your own blog? Any help would be really appreciated!

I am regular reader, how are

I am regular reader, how are you everybody? This article posted at this website is in fact pleasant.|

What's up every one, here

What's up every one, here every one is sharing such experience, so it's pleasant to read
this blog, and I used to pay a quick visit this blog everyday.

Jim's San Jose Carpet Cleaning
780 S 3rd St, San Jose, CA 95112
3408-351-1063
colettemackie2641 [at] gmail [dot] com

Hi, its good paragraph about

Hi, its good paragraph about media print, we all know media is a wonderful source of information.|

I am really enjoying the

I am really enjoying the theme/design of your site.
Do you ever run into any internet browser compatibility issues?
A number of my blog visitors have complained about my blog not working correctly in Explorer but looks
great in Safari. Do you have any solutions to help fix this issue?

I don't know whether it's

I don't know whether it's just me or if everyone else experiencing issues with
your website. It appears like some of the text on your posts are running off the screen. Can someone else please provide feedback and let me know if
this is happening to them too? This could be a issue with my
browser because I've had this happen before. Cheers

Its such as you learn my

Its such as you learn my thoughts! You seem to grasp so much about this, such
as you wrote the e-book in it or something. I feel that you just can do with a few p.c.
to power the message house a little bit, however other than that, that is wonderful blog.
A great read. I will definitely be back.

Tremendous issues here. I am

Tremendous issues here. I am very happy to peer your article.
Thank you so much and I'm having a look forward to contact you.
Will you please drop me a mail?

I read this paragraph fully

I read this paragraph fully regarding the comparison of most up-to-date and previous technologies, it's awesome article.

I have been browsing on-line

I have been browsing on-line greater than 3 hours as of late,
yet I by no means found any interesting article like yours.
It's beautiful price enough for me. In my view, if all web owners and bloggers made good content material as you did, the net will likely be a lot more useful than ever before.

I'm curious to find out what

I'm curious to find out what blog platform you're using?

I'm having some small security issues with my latest website
and I would like to find something more secure.
Do you have any suggestions?

My partner and I stumbled

My partner and I stumbled over here from a different web address and thought I might check things
out. I like what I see so i am just following you.

Look forward to checking out your web page yet again.

Remarkable! Its genuinely

Remarkable! Its genuinely remarkable paragraph, I have got much clear
idea concerning from this post.

Hozzászólás

A mező tartalma nem nyilvános.
  • Internal paths in double quotes, written as "internal:node/99", for example, are replaced with the appropriate absolute URL or relative path.
  • Engedélyezett HTML elemek: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <del> <img>
  • A webcímek és email címek automatikusan linkekké alakulnak.
  • A sorokat és bekezdéseket a rendszer automatikusan felismeri.
  • Engedélyezett HTML elemek: <a> <blockquote> <br> <cite> <code> <dd> <del> <div> <dl> <dt> <em> <li> <ol> <p> <span> <strong> <ul>
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <bash>, <c>, <cpp>, <drupal5>, <drupal6>, <java>, <javascript>, <mysql>, <php>, <python>, <ruby>, <sql>. The supported tag styles are: <foo>, [foo].
  • Minden email cím át lesz alakítva ember által olvasható módon, vagy (ha a JavaScript engedélyezett) ki lesz cserélve kattintható, de biztonságos hivatkozásra.