Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I published a plugin and then installed it into a test site to check it was published OK.

The copy that was installed contains:

  • plugin.php
  • readme.txt
  • trunk/plugin.php
  • trunk/readme.txt

The trunk folder is redundant and other plugins don't seem to come duplicated. How can I avoid the plugin files getting downloaded twice?

share|improve this question
1  
What does trunk of SVN looks like? –  Rarst May 2 '13 at 18:22
2  
Are you new to using SVN? I know i had issues sorting out the folder and file structure when i started out. Totally confusing when you're starting out.. (well it was for me, i can't speak for you obviously)... –  t31os May 2 '13 at 19:14
    
@Rarst trunk looks like in question. Nice idea, though. I had hoped that I'd copied trunk into itself but no such luck. –  oks May 2 '13 at 22:36
    
@t3los Yes very new! Thanks –  oks May 2 '13 at 22:37
    
@Rarst in fact you are right. I had trunk duplicated in the tags folder. Mystery over. Thank you. –  oks May 2 '13 at 23:40
add comment

1 Answer

up vote 2 down vote accepted

I do not know which OS and/or software you use but regarding SVN it's quite simple :

$ svn co http://plugins.svn.wordpress.org/your-plugin-name

Then you just have to add your files in trunk and/or maybe in assets (banner,screenshots). Then :

$ svn add trunk/*

and or :

$ svn add assets/*

Last step is :

$ svn ci -m "initial upload"

That's pretty much what I use to release plugins on wordpress.org, hope this will help :)

share|improve this answer
    
@TwwetPressFr Thanks. I did that. At least I think I did. I guess I did something wrong though, because the trunk folder gets duplicated. –  oks May 2 '13 at 22:38
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.