Discussion:
[mantisbt-dev] Issue on committing changes to a fork (mantisbt-plugins)
Manilal K M
2014-12-29 15:04:23 UTC
Permalink
Hello,

This is slightly offtopic, but since it's related to mantisbt-plugins I thought someone may have a quick solution for the following issue.

I tried to fork the timetracking plugin in mantisbt-plugins and had some issues in setting up the development environment. I cloned the repository and the source files got downloaded to timetracking folder within mantisbt/plugins. Then I moved everything (including .git) folder to the TimeTracking folder within the timetracking folder. I modified some of the files and committed the changes, but I got the following suspicious output:

[***@es032 TimeTracking]# git commit -a
[master 3b0abfe] Included jscalendar datepicker widget to input date Added new table to store factors and reference field in the data table
14 files changed, 1092 deletions(-)
delete mode 100644 README
delete mode 100644 TimeTracking/LICENSE-2.0.txt
delete mode 100644 TimeTracking/TimeTracking.php
delete mode 100644 TimeTracking/core/timetracking_api.php
delete mode 100644 TimeTracking/lang/strings_catalan.txt
delete mode 100755 TimeTracking/lang/strings_english.txt
delete mode 100755 TimeTracking/lang/strings_french.txt
delete mode 100755 TimeTracking/lang/strings_german.txt
delete mode 100644 TimeTracking/lang/strings_spanish.txt
delete mode 100644 TimeTracking/pages/add_record.php
delete mode 100644 TimeTracking/pages/config_page.php
delete mode 100644 TimeTracking/pages/config_update.php
delete mode 100644 TimeTracking/pages/delete_record.php
delete mode 100644 TimeTracking/pages/show_report.php

I have worked with EmailReporting plugin earlier, but didn't have such issues.

Could someone help me to figure out this? Can I ignore the above messages submit the pull request?

I would like to submit couple of feature enhancements to the TimeTracking plugin.

regards
Manilal
Damien Regad
2014-12-29 22:59:19 UTC
Permalink
Hi Manilal,
Post by Manilal K M
I cloned the repository and the source files got downloaded to
timetracking folder within mantisbt/plugins.
Then I moved everything (including .git) folder to the TimeTracking
folder within the timetracking folder.
What you did is is basically moving the contents of the TimeTracking
directory to the repository's root and removing the directory. In other
words, you changed the repo's structure

Before:
./timetracking/.git
./timetracking/README
./timetracking/TimeTracking/
./timetracking/TimeTracking/core
./timetracking/TimeTracking/pages
./timetracking/TimeTracking/lang

After:
./timetracking/.git
./timetracking/README
./timetracking/core
./timetracking/pages
./timetracking/lang
Post by Manilal K M
I have worked with EmailReporting plugin earlier, but didn't have such issues.
The EmailReporting plugin has all its files at the repository's root,
whereas the timetracking stores it in the TimeTracking subdir.
Post by Manilal K M
Could someone help me to figure out this?
Hope the above explanation was enough...

I suggest you checkout the repository outside of Mantis' plugin
directory, and create a symbolic link to TimeTracking subdir, e.g.

$ cd /path/to/mantis/plugins
$ ln -s /path/to/timetracking/TimeTracking
Post by Manilal K M
Can I ignore the above messages submit the pull request?
No you cant ;-)

D
Manilal K M
2014-12-30 04:33:37 UTC
Permalink
Damien,

Thanks for the detailed explanation. I thought of having a symbolic link, but then I was not very sure whether it will work with Mantis. I will get back to you if I have any more questions.

regards
Manilal

----- Original Message -----
Sent: Tuesday, December 30, 2014 4:29:19 AM
Subject: Re: [mantisbt-dev] Issue on committing changes to a fork (mantisbt-plugins)
Hi Manilal,
Post by Manilal K M
I cloned the repository and the source files got downloaded to
timetracking folder within mantisbt/plugins.
Then I moved everything (including .git) folder to the TimeTracking
folder within the timetracking folder.
What you did is is basically moving the contents of the TimeTracking
directory to the repository's root and removing the directory. In other
words, you changed the repo's structure
./timetracking/.git
./timetracking/README
./timetracking/TimeTracking/
./timetracking/TimeTracking/core
./timetracking/TimeTracking/pages
./timetracking/TimeTracking/lang
./timetracking/.git
./timetracking/README
./timetracking/core
./timetracking/pages
./timetracking/lang
Post by Manilal K M
I have worked with EmailReporting plugin earlier, but didn't have such issues.
The EmailReporting plugin has all its files at the repository's root,
whereas the timetracking stores it in the TimeTracking subdir.
Post by Manilal K M
Could someone help me to figure out this?
Hope the above explanation was enough...
I suggest you checkout the repository outside of Mantis' plugin
directory, and create a symbolic link to TimeTracking subdir, e.g.
$ cd /path/to/mantis/plugins
$ ln -s /path/to/timetracking/TimeTracking
Post by Manilal K M
Can I ignore the above messages submit the pull request?
No you cant ;-)
D
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
Louis BAYLE
2015-01-23 08:32:52 UTC
Permalink
Hi,
You may also consider using the following plugin:

http://codevtt.org

Best regards,
Louis

Louis BAYLE
Tel: +33 (0)4.42.604.734
Post by Manilal K M
Damien,
Thanks for the detailed explanation. I thought of having a symbolic link,
but then I was not very sure whether it will work with Mantis. I will get
back to you if I have any more questions.
regards
Manilal
----- Original Message -----
Sent: Tuesday, December 30, 2014 4:29:19 AM
Subject: Re: [mantisbt-dev] Issue on committing changes to a fork
(mantisbt-plugins)
Hi Manilal,
Post by Manilal K M
I cloned the repository and the source files got downloaded to
timetracking folder within mantisbt/plugins.
Then I moved everything (including .git) folder to the TimeTracking
folder within the timetracking folder.
What you did is is basically moving the contents of the TimeTracking
directory to the repository's root and removing the directory. In other
words, you changed the repo's structure
./timetracking/.git
./timetracking/README
./timetracking/TimeTracking/
./timetracking/TimeTracking/core
./timetracking/TimeTracking/pages
./timetracking/TimeTracking/lang
./timetracking/.git
./timetracking/README
./timetracking/core
./timetracking/pages
./timetracking/lang
Post by Manilal K M
I have worked with EmailReporting plugin earlier, but didn't have such
issues.
The EmailReporting plugin has all its files at the repository's root,
whereas the timetracking stores it in the TimeTracking subdir.
Post by Manilal K M
Could someone help me to figure out this?
Hope the above explanation was enough...
I suggest you checkout the repository outside of Mantis' plugin
directory, and create a symbolic link to TimeTracking subdir, e.g.
$ cd /path/to/mantis/plugins
$ ln -s /path/to/timetracking/TimeTracking
Post by Manilal K M
Can I ignore the above messages submit the pull request?
No you cant ;-)
D
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is
your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take
a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
------------------------------------------------------------------------------
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
_______________________________________________
mantisbt-dev mailing list
https://lists.sourceforge.net/lists/listinfo/mantisbt-dev
Loading...