Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect timestamps due to git clone #69

Open
ryanlelek opened this issue Oct 29, 2015 · 2 comments
Open

Incorrect timestamps due to git clone #69

ryanlelek opened this issue Oct 29, 2015 · 2 comments
Labels
bug Issue with Existing Functionality pending Pending Close. Respond qa Verify / Quality Assurance

Comments

@ryanlelek
Copy link
Owner

Using git clone recreates the files locally, and the OS sees this as the "create" date

Normally, this would be fine assuming the deployment wasn't moved and was never re-cloned. However, if multiple deployments are used, there will be a mismatch in "Last updated" date timestamps.

Does anyone know if there is an easy way to base file modification dates on the git history instead of the file system?

@vyp
Copy link
Contributor

vyp commented Oct 29, 2015

I don't think it is possible with pure git, see http://stackoverflow.com/questions/1964470/whats-the-equivalent-of-use-commit-times-for-git for more information. In general I (personally) wouldn't want to change modification dates of files, but I could accept say the vcs storing the last modification dates (and/or other metadata) of the files, and applying that for me automatically after I give an option to a clone. But as you can see in that link, git does not provide this.

Of course, you could come up with your own non-git solution or find someone else's solution (like in that thread).

@ryanlelek ryanlelek added the bug Issue with Existing Functionality label Nov 15, 2015
@Sparticuz
Copy link
Contributor

I think the best way to take care of this is by adding an optional yaml last_modified: timestamp. I'll look into adding this.

@ryanlelek ryanlelek added qa Verify / Quality Assurance pending Pending Close. Respond labels Aug 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue with Existing Functionality pending Pending Close. Respond qa Verify / Quality Assurance
Projects
None yet
Development

No branches or pull requests

3 participants